proc: cleanup: remove unused assignments
I removed 3 unused assignments. The first two get reset on the first statement of their functions. For "err" in root.c we don't return an error and we don't use the variable again. Signed-off-by: Dan Carpenter <error27@gmail.com> Cc: Oleg Nesterov <oleg@redhat.com> Acked-by: Serge Hallyn <serue@us.ibm.com> Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
b3ac022cb9
commit
73d3646029
@@ -110,7 +110,6 @@ void __init proc_root_init(void)
|
||||
if (err)
|
||||
return;
|
||||
proc_mnt = kern_mount_data(&proc_fs_type, &init_pid_ns);
|
||||
err = PTR_ERR(proc_mnt);
|
||||
if (IS_ERR(proc_mnt)) {
|
||||
unregister_filesystem(&proc_fs_type);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user