From: Wang Shilong Date: Wed, 6 Feb 2013 06:14:26 +0000 (+0800) Subject: Ext2: remove the overhead check about sb in the function ext2_new_blocks X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=98783e453c1084527388ec1a7f6367cd6aabbe63;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git Ext2: remove the overhead check about sb in the function ext2_new_blocks It can be guranteed that inode->i_sb should not be null in vfs. So here the check about it is overhead. Signed-off-by: Wang Shilong Signed-off-by: Jan Kara --- diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c index 2616d0ea5c5c..ea88181932df 100644 --- a/fs/ext2/balloc.c +++ b/fs/ext2/balloc.c @@ -1239,10 +1239,6 @@ ext2_fsblk_t ext2_new_blocks(struct inode *inode, ext2_fsblk_t goal, *errp = -ENOSPC; sb = inode->i_sb; - if (!sb) { - printk("ext2_new_blocks: nonexistent device"); - return 0; - } /* * Check quota for allocation of this block.