diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-08-10 22:47:22 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-08-10 22:47:22 -0400 |
commit | c333e073b7bf76dc819a6b4ce6bef88ee5fa5e50 (patch) | |
tree | 500355f9b183c83afc47d2110175a175d775cb90 /fs | |
parent | 785b4b3a5a992eeb8b495a89b6f690b383010aba (diff) | |
download | op-kernel-dev-c333e073b7bf76dc819a6b4ce6bef88ee5fa5e50.zip op-kernel-dev-c333e073b7bf76dc819a6b4ce6bef88ee5fa5e50.tar.gz |
ext4: remove redundant test on unsigned
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext4/inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index deb14a7..9a4c929 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) { |