From: Eric Sesterhenn Date: Wed, 11 Oct 2006 08:21:59 +0000 (-0700) Subject: [PATCH] Remove unnecessary check in fs/fat/inode.c X-Git-Tag: v2.6.19-rc2~68 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=97e860d364aa9d08e895ecb619b9122ae2c70df8;p=linux-2.6-omap-h63xx.git [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 Acked-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 4613cb20217..78945b53b0f 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); }