diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-10-11 10:21:59 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 20:14:23 +0200 |
commit | 97e860d364aa9d08e895ecb619b9122ae2c70df8 (patch) | |
tree | eebabd5ead63718b280bc32a03f325a5554bca84 /fs/fat | |
parent | [PATCH] VM: Fix the gfp_mask in invalidate_complete_page2 (diff) | |
download | linux-97e860d364aa9d08e895ecb619b9122ae2c70df8.tar.xz linux-97e860d364aa9d08e895ecb619b9122ae2c70df8.zip |
[PATCH] Remove unnecessary check in fs/fat/inode.c
Aince all callers dereference sb, and this function does so earlier too, we
dont need the check.
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fat')
-rw-r--r-- | fs/fat/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 4613cb202170..78945b53b0f8 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -1472,7 +1472,7 @@ int fat_flush_inodes(struct super_block *sb, struct inode *i1, struct inode *i2) ret = writeback_inode(i1); if (!ret && i2) ret = writeback_inode(i2); - if (!ret && sb) { + if (!ret) { struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping; ret = filemap_flush(mapping); } |