aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2008-10-29 17:23:54 -0400
committerJan Kara <jack@suse.cz>2009-04-02 06:29:50 -0400
commit30930554f23511645ad9cfb89792219bf398b654 (patch)
tree24a7b9a5527ba92f808d46d5b598f66eac9351ad /fs/udf
parent7ac9bcd5da59dd96eb1153d3fc04c3471fa5c09d (diff)
udf: unsigned last[i] cannot be less than 0
unsigned last[i] cannot be less than 0 Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf')
-rw-r--r--fs/udf/super.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c
index 98d5455f77c7..0368bf60f42b 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -746,8 +746,6 @@ static sector_t udf_scan_anchors(struct super_block *sb, sector_t lastblock)
746 * however, if the disc isn't closed, it could be 512 */ 746 * however, if the disc isn't closed, it could be 512 */
747 747
748 for (i = 0; i < ARRAY_SIZE(last); i++) { 748 for (i = 0; i < ARRAY_SIZE(last); i++) {
749 if (last[i] < 0)
750 continue;
751 if (last[i] >= sb->s_bdev->bd_inode->i_size >> 749 if (last[i] >= sb->s_bdev->bd_inode->i_size >>
752 sb->s_blocksize_bits) 750 sb->s_blocksize_bits)
753 continue; 751 continue;