diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-10-11 04:21:59 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:23 -0400 |
commit | 97e860d364aa9d08e895ecb619b9122ae2c70df8 (patch) | |
tree | eebabd5ead63718b280bc32a03f325a5554bca84 /fs/fat | |
parent | 887ed2f3aecde2ff24e06666932dc5f144745044 (diff) |
[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) | |||
1472 | ret = writeback_inode(i1); | 1472 | ret = writeback_inode(i1); |
1473 | if (!ret && i2) | 1473 | if (!ret && i2) |
1474 | ret = writeback_inode(i2); | 1474 | ret = writeback_inode(i2); |
1475 | if (!ret && sb) { | 1475 | if (!ret) { |
1476 | struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping; | 1476 | struct address_space *mapping = sb->s_bdev->bd_inode->i_mapping; |
1477 | ret = filemap_flush(mapping); | 1477 | ret = filemap_flush(mapping); |
1478 | } | 1478 | } |