summaryrefslogtreecommitdiffstats
path: root/fs/fat
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2015-04-16 12:47:21 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-17 09:04:05 -0400
commita40a7d9d07b818ce9aa9f6ddf86076a5eef2d8f9 (patch)
tree6b1abfdc90126bf0df7982402e1a5af9109d6b18 /fs/fat
parentdb579e76f06e78de011b2cb7e028740a82f5558c (diff)
downloadlinux-stable-a40a7d9d07b818ce9aa9f6ddf86076a5eef2d8f9.tar.gz
linux-stable-a40a7d9d07b818ce9aa9f6ddf86076a5eef2d8f9.tar.bz2
linux-stable-a40a7d9d07b818ce9aa9f6ddf86076a5eef2d8f9.zip
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 <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>
Diffstat (limited to 'fs/fat')
-rw-r--r--fs/fat/inode.c3
1 files changed, 1 insertions, 2 deletions
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;