From: Lukas Czerner Date: Tue, 28 May 2013 03:32:35 +0000 (-0400) Subject: ext4: remove unused code from ext4_remove_blocks() X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~83^2~69 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78fb9cdf035d88a39a5e5f83bb8788e4fe7c1f72;p=pandora-kernel.git ext4: remove unused code from ext4_remove_blocks() The "head removal" branch in the condition is never used in any code path in ext4 since the function only caller ext4_ext_rm_leaf() will make sure that the extent is properly split before removing blocks. Note that there is a bug in this branch anyway. This commit removes the unused code completely and makes use of ext4_error() instead of printk if dubious range is provided. Signed-off-by: Lukas Czerner Reviewed-by: Jan Kara Signed-off-by: Theodore Ts'o --- Reading git-diff-tree failed