udf: unsigned last[i] cannot be less than 0

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 3, 2009 - 11:04 am

Gitweb:     http://git.kernel.org/linus/30930554f23511645ad9cfb89792219bf398b654
Commit:     30930554f23511645ad9cfb89792219bf398b654
Parent:     7ac9bcd5da59dd96eb1153d3fc04c3471fa5c09d
Author:     roel kluin <roel.kluin@gmail.com>
AuthorDate: Wed Oct 29 17:23:54 2008 -0400
Committer:  Jan Kara <jack@suse.cz>
CommitDate: Thu Apr 2 12:29:50 2009 +0200

    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>
---
 fs/udf/super.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/fs/udf/super.c b/fs/udf/super.c
index 98d5455..0368bf6 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)
 	 *  however, if the disc isn't closed, it could be 512 */
 
 	for (i = 0; i < ARRAY_SIZE(last); i++) {
-		if (last[i] < 0)
-			continue;
 		if (last[i] >= sb->s_bdev->bd_inode->i_size >>
 				sb->s_blocksize_bits)
 			continue;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
udf: unsigned last[i] cannot be less than 0, Linux Kernel Mailing ..., (Fri Apr 3, 11:04 am)