fs/fat: remove unnecessary defintion
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Thu, 16 Apr 2015 19:47:21 +0000 (12:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:05 +0000 (09:04 -0400)
'*sb' never used, so let's remote it and pass inode->i_sb directly to the
MSDOS_SB.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fat/inode.c

index 8521207de22935464f074b70448cae781ed403e1..b3a2a0e1ef9b739d4ed71adff0129f502acd390a 100644 (file)
@@ -1279,8 +1279,7 @@ out:
 
 static int fat_read_root(struct inode *inode)
 {
-       struct super_block *sb = inode->i_sb;
-       struct msdos_sb_info *sbi = MSDOS_SB(sb);
+       struct msdos_sb_info *sbi = MSDOS_SB(inode->i_sb);
        int error;
 
        MSDOS_I(inode)->i_pos = MSDOS_ROOT_INO;