]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
fs/befs/linuxvfs.c: move useless assignment
authorSalah Triki <salah.triki@acm.org>
Sat, 23 Jul 2016 12:36:41 +0000 (22:36 +1000)
committerLuis de Bethencourt <luisbg@osg.samsung.com>
Sat, 8 Oct 2016 09:01:08 +0000 (10:01 +0100)
Control is transfered to unacquire_none when sb->s_fs_info is equal to
NULL, so the assignment to NULL is useless and it is moved above
unacquire_none.

Link: http://lkml.kernel.org/r/ed41da113fc693c7daa4e8813ca04cc766ddfc05.1464226521.git.salah.triki@acm.org
Signed-off-by: Salah Triki <salah.triki@acm.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/befs/linuxvfs.c

index 7da05b159ade2d21e5055318723ed857f8f35f64..75ec9a74d8ffa615071c76726d0f8df9331aa9e8 100644 (file)
@@ -870,9 +870,9 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
       unacquire_priv_sbp:
        kfree(befs_sb->mount_opts.iocharset);
        kfree(sb->s_fs_info);
+       sb->s_fs_info = NULL;
 
       unacquire_none:
-       sb->s_fs_info = NULL;
        return ret;
 }