fs/ufs: remove unused ufs_super_block_third pointer
authorChristian Engelmayer <cengelma@gmx.at>
Mon, 7 Apr 2014 22:39:57 +0000 (15:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 7 Apr 2014 23:36:16 +0000 (16:36 -0700)
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 <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>
fs/ufs/super.c

index 53122c959cc185ad87a4db8a6f8e66f90a6b6a23..c1183f9f69dc71c3089951898043c582181092fd 100644 (file)
@@ -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.