From: Roel Kluin Date: Tue, 11 Aug 2009 02:47:22 +0000 (-0400) Subject: ext4: remove redundant test on unsigned X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c333e073b7bf76dc819a6b4ce6bef88ee5fa5e50;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ext4: remove redundant test on unsigned unsigned i_block cannot be less than 0. Signed-off-by: Roel Kluin Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index deb14a728791..9a4c929b16dc 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -341,9 +341,7 @@ static int ext4_block_to_path(struct inode *inode, int n = 0; int final = 0; - if (i_block < 0) { - ext4_warning(inode->i_sb, "ext4_block_to_path", "block < 0"); - } else if (i_block < direct_blocks) { + if (i_block < direct_blocks) { offsets[n++] = i_block; final = direct_blocks; } else if ((i_block -= direct_blocks) < indirect_blocks) {