ext4: remove redundant test on unsigned
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 11 Aug 2009 02:47:22 +0000 (22:47 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 11 Aug 2009 02:47:22 +0000 (22:47 -0400)
unsigned i_block cannot be less than 0.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c

index deb14a728791aac05cdf9e60010268ae36da05a3..9a4c929b16dccecb848e01ca5f9d489af6dd677f 100644 (file)
@@ -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) {