[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140211012316.519cfa6b@spike>
Date: Tue, 11 Feb 2014 01:23:16 +0100
From: Christian Engelmayer <cengelma@....at>
To: linux-fsdevel@...r.kernel.org
Cc: Evgeniy Dushistov <dushistov@...l.ru>, linux-kernel@...r.kernel.org
Subject: [PATCH 2/3] fs: ufs: Remove unused ufs_super_block_second pointer
Pointer 'usb2' to struct ufs_super_block_second acquired via
ubh_get_usb_second() is never used in function ufs_statfs().
Thus remove it.
Detected by Coverity: CID 139940.
Signed-off-by: Christian Engelmayer <cengelma@....at>
---
fs/ufs/super.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/ufs/super.c b/fs/ufs/super.c
index 3f2c086..53ce1af 100644
--- a/fs/ufs/super.c
+++ b/fs/ufs/super.c
@@ -1389,13 +1389,11 @@ 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_second *usb2;
struct ufs_super_block_third *usb3;
u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
lock_ufs(sb);
- usb2 = ubh_get_usb_second(uspi);
usb3 = ubh_get_usb_third(uspi);
if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2) {
--
1.8.3.2
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists