Ext2: remove a useless check for the function ext2_free_blocks
PATCH 1/2 Ext2: remove a useless check for the function ext2_free_blocks
From: Wang Shilong <[email protected]>
Because 'block + count < block' always comes to false, it is useles to have this check,just remove it.
Signed-off-by Wang Shilong <[email protected]>
--- fs/ext2/balloc.c | 1 - 1 file changed, 1 deletion(-)
fs/ext2/balloc.c +0 -1
@@ -498,7 +498,6 @@ void ext2_free_blocks (struct inode * inode, unsigned long block,unsigned freed =0 , group_freed;if (block <le32_to_cpu (es->s_first_data_block) || - block + count < block || block + count >le32_to_cpu (es->s_blocks_count)) {ext2_error (sb,"ext2_free_blocks" , "Freeing blocks not in datazone - "
-- 1.7.11.7