[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1534815222-101634-1-git-send-email-yuehaibing@huawei.com>
Date: Tue, 21 Aug 2018 01:33:42 +0000
From: Yue Haibing <yuehaibing@...wei.com>
To: Evgeniy Dushistov <dushistov@...l.ru>
CC: Yue Haibing <yuehaibing@...wei.com>,
<linux-kernel@...r.kernel.org>, <kernel-janitors@...r.kernel.org>
Subject: [PATCH] ufs: remove set but not used variable 'usb3'
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@...wei.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;
Powered by blists - more mailing lists