statfs: remove redundant pointer sb
Subsystems (2)
PATCH 1/1 statfs: remove redundant pointer sb
From: Colin Ian King <[email protected]>
Pointer sb is being assigned but is never used hence it is redundant and can be removed.
Cleans up clang warning:
warning: variable 'sb' set but not used [-Wunused-but-set-variable]
Signed-off-by Colin Ian King <[email protected]>
--- fs/statfs.c | 2 -- 1 file changed, 2 deletions(-)
fs/statfs.c +0 -2
@@ -402,7 +402,6 @@ COMPAT_SYSCALL_DEFINE2(ustat, unsigned, dev, struct compat_ustat __user *, u)static int fsinfo_generic_statfs (struct dentry *dentry,struct fsinfo_statfs *p) { -struct super_block *sb;struct kstatfs buf;int ret;
@@ -410,7 +409,6 @@ static int fsinfo_generic_statfs(struct dentry *dentry,if (ret <0 )return ret; - sb = dentry->d_sb; p->f_blocks = buf.f_blocks; p->f_bfree = buf.f_bfree; p->f_bavail = buf.f_bavail;
Signature · 1 line
2.17.1