From: Alexander Kuleshov Date: Thu, 16 Apr 2015 19:47:21 +0000 (-0700) Subject: fs/fat: remove unnecessary defintion X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a40a7d9d07b818ce9aa9f6ddf86076a5eef2d8f9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.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 @@ 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;