diff options
author | Christian Engelmayer <cengelma@gmx.at> | 2014-04-07 18:39:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 19:36:16 -0400 |
commit | 48968a112cdf992d52c949a26c0020943c2268b1 (patch) | |
tree | 19ff9f596dc7f771a4860be213a07c61a036b09f /fs/ufs/super.c | |
parent | 6e0bd34c33b193849b5ada01dd0b02d3bef85bf3 (diff) |
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@gmx.at>
Cc: Evgeniy Dushistov <dushistov@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ufs/super.c')
-rw-r--r-- | fs/ufs/super.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index 0232f526a5cf..53122c959cc1 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
@@ -1390,13 +1390,11 @@ static int ufs_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
1390 | struct super_block *sb = dentry->d_sb; | 1390 | struct super_block *sb = dentry->d_sb; |
1391 | struct ufs_sb_private_info *uspi= UFS_SB(sb)->s_uspi; | 1391 | struct ufs_sb_private_info *uspi= UFS_SB(sb)->s_uspi; |
1392 | unsigned flags = UFS_SB(sb)->s_flags; | 1392 | unsigned flags = UFS_SB(sb)->s_flags; |
1393 | struct ufs_super_block_second *usb2; | ||
1394 | struct ufs_super_block_third *usb3; | 1393 | struct ufs_super_block_third *usb3; |
1395 | u64 id = huge_encode_dev(sb->s_bdev->bd_dev); | 1394 | u64 id = huge_encode_dev(sb->s_bdev->bd_dev); |
1396 | 1395 | ||
1397 | lock_ufs(sb); | 1396 | lock_ufs(sb); |
1398 | 1397 | ||
1399 | usb2 = ubh_get_usb_second(uspi); | ||
1400 | usb3 = ubh_get_usb_third(uspi); | 1398 | usb3 = ubh_get_usb_third(uspi); |
1401 | 1399 | ||
1402 | if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2) { | 1400 | if ((flags & UFS_TYPE_MASK) == UFS_TYPE_UFS2) { |