From: Wei Yongjun <weiyongjun1@huawei.com> To: Alexander Viro <viro@zeniv.linux.org.uk>, David Howells <dhowells@redhat.com> Cc: Wei Yongjun <weiyongjun1@huawei.com>, <linux-fsdevel@vger.kernel.org>, <kernel-janitors@vger.kernel.org> Subject: [PATCH -next] statfs: remove set but not used variable 'sb' Date: Wed, 8 Aug 2018 04:35:42 +0000 [thread overview] Message-ID: <1533702942-166827-1-git-send-email-weiyongjun1@huawei.com> (raw) Fixes gcc '-Wunused-but-set-variable' warning: fs/statfs.c: In function 'fsinfo_generic_statfs': fs/statfs.c:406:22: warning: variable 'sb' set but not used [-Wunused-but-set-variable] struct super_block *sb; ^ Fixes: 90b413cb970a ("vfs: syscall: Add fsinfo() to query filesystem information") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> --- fs/statfs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/statfs.c b/fs/statfs.c index 2f3f2d5..f714f05 100644 --- a/fs/statfs.c +++ b/fs/statfs.c @@ -403,7 +403,6 @@ int kcompat_sys_fstatfs64(unsigned int fd, compat_size_t sz, struct compat_statf static int fsinfo_generic_statfs(struct dentry *dentry, struct fsinfo_statfs *p) { - struct super_block *sb; struct kstatfs buf; int ret; @@ -411,7 +410,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;
WARNING: multiple messages have this Message-ID (diff)
From: Wei Yongjun <weiyongjun1@huawei.com> To: Alexander Viro <viro@zeniv.linux.org.uk>, David Howells <dhowells@redhat.com> Cc: Wei Yongjun <weiyongjun1@huawei.com>, linux-fsdevel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH -next] statfs: remove set but not used variable 'sb' Date: Wed, 08 Aug 2018 04:35:42 +0000 [thread overview] Message-ID: <1533702942-166827-1-git-send-email-weiyongjun1@huawei.com> (raw) Fixes gcc '-Wunused-but-set-variable' warning: fs/statfs.c: In function 'fsinfo_generic_statfs': fs/statfs.c:406:22: warning: variable 'sb' set but not used [-Wunused-but-set-variable] struct super_block *sb; ^ Fixes: 90b413cb970a ("vfs: syscall: Add fsinfo() to query filesystem information") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> --- fs/statfs.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/statfs.c b/fs/statfs.c index 2f3f2d5..f714f05 100644 --- a/fs/statfs.c +++ b/fs/statfs.c @@ -403,7 +403,6 @@ int kcompat_sys_fstatfs64(unsigned int fd, compat_size_t sz, struct compat_statf static int fsinfo_generic_statfs(struct dentry *dentry, struct fsinfo_statfs *p) { - struct super_block *sb; struct kstatfs buf; int ret; @@ -411,7 +410,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;
next reply other threads:[~2018-08-08 6:46 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-08-08 4:35 Wei Yongjun [this message] 2018-08-08 4:35 ` [PATCH -next] statfs: remove set but not used variable 'sb' Wei Yongjun
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1533702942-166827-1-git-send-email-weiyongjun1@huawei.com \ --to=weiyongjun1@huawei.com \ --cc=dhowells@redhat.com \ --cc=kernel-janitors@vger.kernel.org \ --cc=linux-fsdevel@vger.kernel.org \ --cc=viro@zeniv.linux.org.uk \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.