Skip to contentSkip to conversation

fs/fat: remove unnecessary defintion

PATCH In review Alexander Kuleshov 1 participant 2 messages Feb 18, 2015 VFAT/FAT/msdos filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 fs/fat: remove unnecessary defintion

'*sb' never used, so let's remote it and pass inode->i_sb directly to the MSDOS_SB.

---
 fs/fat/inode.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/fat/inode.c +1 -2
index 7b41a2d..e140e62 100644
@@ -1280,8 +1280,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;
Signature · 1 line
2.3.0.401.g57a267c.dirty
#1 lore raw

Sorry for noise. Sent wrong patch.

2015-02-19 1:10 GMT+06:00 Alexander Kuleshov <[email protected]>:

Quoted 25 lines

'*sb' never used, so let's remote it and pass inode->i_sb directly to the MSDOS_SB.

---
 fs/fat/inode.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
fs/fat/inode.c +1 -3
index 7b41a2d..e140e62 100644
@@ -1280,8 +1280,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;
--

2.3.0.401.g57a267c.dirty

Signature · 2 lines
_________________________
0xAX