* [PATCH] ufs: remove set but not used variable 'usb3'
@ 2018-08-21 1:33 Yue Haibing
2018-11-08 12:30 ` [PATCH -next] " YueHaibing
0 siblings, 1 reply; 2+ messages in thread
From: Yue Haibing @ 2018-08-21 1:33 UTC (permalink / raw)
To: Evgeniy Dushistov; +Cc: Yue Haibing, linux-kernel, kernel-janitors
Fixes gcc '-Wunused-but-set-variable' warning:
fs/ufs/super.c: In function 'ufs_statfs':
fs/ufs/super.c:1409:32: warning:
variable 'usb3' set but not used [-Wunused-but-set-variable]
struct ufs_super_block_third *usb3;
^
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
fs/ufs/super.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/ufs/super.c b/fs/ufs/super.c
index a4e07e9..6a5db06 100644
--- a/fs/ufs/super.c
+++ b/fs/ufs/super.c
@@ -1406,11 +1406,9 @@ static int ufs_statfs(struct dentry *dentry, struct kstatfs *buf)
struct super_block *sb = dentry->d_sb;
struct ufs_sb_private_info *uspi= UFS_SB(sb)->s_uspi;
unsigned flags = UFS_SB(sb)->s_flags;
- struct ufs_super_block_third *usb3;
u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
mutex_lock(&UFS_SB(sb)->s_lock);
- usb3 = ubh_get_usb_third(uspi);
if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2)
buf->f_type = UFS2_MAGIC;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH -next] ufs: remove set but not used variable 'usb3'
2018-08-21 1:33 [PATCH] ufs: remove set but not used variable 'usb3' Yue Haibing
@ 2018-11-08 12:30 ` YueHaibing
0 siblings, 0 replies; 2+ messages in thread
From: YueHaibing @ 2018-11-08 12:30 UTC (permalink / raw)
To: Evgeniy Dushistov, Al Viro, David Howells, Arnd Bergmann
Cc: Yue Haibing, linux-kernel, kernel-janitors
From: Yue Haibing <yuehaibing@huawei.com>
Fixes gcc '-Wunused-but-set-variable' warning:
fs/ufs/super.c: In function 'ufs_statfs':
fs/ufs/super.c:1409:32: warning:
variable 'usb3' set but not used [-Wunused-but-set-variable]
It not used any more after commit
c596961d1b4c ("ufs: fix s_size/s_dsize users")
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
---
fs/ufs/super.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/ufs/super.c b/fs/ufs/super.c
index a4e07e9..6a5db06 100644
--- a/fs/ufs/super.c
+++ b/fs/ufs/super.c
@@ -1406,11 +1406,9 @@ static int ufs_statfs(struct dentry *dentry, struct kstatfs *buf)
struct super_block *sb = dentry->d_sb;
struct ufs_sb_private_info *uspi= UFS_SB(sb)->s_uspi;
unsigned flags = UFS_SB(sb)->s_flags;
- struct ufs_super_block_third *usb3;
u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
mutex_lock(&UFS_SB(sb)->s_lock);
- usb3 = ubh_get_usb_third(uspi);
if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2)
buf->f_type = UFS2_MAGIC;
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-08 12:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-21 1:33 [PATCH] ufs: remove set but not used variable 'usb3' Yue Haibing
2018-11-08 12:30 ` [PATCH -next] " YueHaibing
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).