]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
vfs: show_vfsmnt: remove redundant initialization of error code
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 18 Nov 2015 21:57:52 +0000 (00:57 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Dec 2015 02:17:15 +0000 (21:17 -0500)
As err variable is now always checked right after the first assignment,
its initialization is redundant and could be safely removed.

Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/proc_namespace.c

index 8ebd9a3340852823b17f61af59f4dd6a65f1b35f..1d984b5e489e152743dd1cad19772db826e5fccd 100644 (file)
@@ -95,9 +95,9 @@ static int show_vfsmnt(struct seq_file *m, struct vfsmount *mnt)
 {
        struct proc_mounts *p = m->private;
        struct mount *r = real_mount(mnt);
-       int err = 0;
        struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt };
        struct super_block *sb = mnt_path.dentry->d_sb;
+       int err;
 
        if (sb->s_op->show_devname) {
                err = sb->s_op->show_devname(m, mnt_path.dentry);