From: Alexander Kuleshov Date: Thu, 16 Apr 2015 19:47:21 +0000 (-0700) Subject: fs/fat: remove unnecessary defintion X-Git-Tag: v4.1-rc1~102^2~48 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=a40a7d9d07b818ce9aa9f6ddf86076a5eef2d8f9;p=linux.git fs/fat: remove unnecessary defintion '*sb' never used, so let's remote it and pass inode->i_sb directly to the MSDOS_SB. Signed-off-by: Alexander Kuleshov Acked-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 8521207de229..b3a2a0e1ef9b 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -1279,8 +1279,7 @@ static int parse_options(struct super_block *sb, char *options, int is_vfat, 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;