Skip to content

Commit

Permalink
fs/ufs: remove unused ufs_super_block_third pointer
Browse files Browse the repository at this point in the history
Pointer 'usb3' to struct ufs_super_block_third acquired via
ubh_get_usb_third() is never used in function
ufs_read_cylinder_structures().  Thus remove it.

Detected by Coverity: CID 139939.

Signed-off-by: Christian Engelmayer <[email protected]>
Cc: Evgeniy Dushistov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Christian Engelmayer authored and torvalds committed Apr 7, 2014
1 parent 48968a1 commit fe4487d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/ufs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,11 +524,9 @@ static int ufs_read_cylinder_structures(struct super_block *sb)
struct ufs_buffer_head * ubh;
unsigned char * base, * space;
unsigned size, blks, i;
struct ufs_super_block_third *usb3;

UFSD("ENTER\n");

usb3 = ubh_get_usb_third(uspi);
/*
* Read cs structures from (usually) first data block
* on the device.
Expand Down

0 comments on commit fe4487d

Please sign in to comment.