Skip to content

Commit

Permalink
fs/fat: remove unnecessary defintion
Browse files Browse the repository at this point in the history
'*sb' never used, so let's remote it and pass inode->i_sb directly to the
MSDOS_SB.

Signed-off-by: Alexander Kuleshov <[email protected]>
Acked-by: OGAWA Hirofumi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
0xAX authored and torvalds committed Apr 17, 2015
1 parent db579e7 commit a40a7d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/fat/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a40a7d9

Please sign in to comment.