summaryrefslogtreecommitdiffstats
path: root/fs/befs/linuxvfs.c
diff options
context:
space:
mode:
authorSalah Triki <salah.triki@acm.org>2016-07-23 14:36:41 +0200
committerLuis de Bethencourt <luisbg@osg.samsung.com>2016-10-08 11:01:08 +0200
commit30982583e4e57c4648fee4a4d6511e23b6e5db2b (patch)
treec67af3c0ff4071da4c39a3d619c0327fa9063203 /fs/befs/linuxvfs.c
parentLinux 4.8 (diff)
downloadlinux-30982583e4e57c4648fee4a4d6511e23b6e5db2b.tar.xz
linux-30982583e4e57c4648fee4a4d6511e23b6e5db2b.zip
fs/befs/linuxvfs.c: move useless assignment
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>
Diffstat (limited to '')
-rw-r--r--fs/befs/linuxvfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
index 7da05b159ade..75ec9a74d8ff 100644
--- a/fs/befs/linuxvfs.c
+++ b/fs/befs/linuxvfs.c
@@ -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;
}