diff options
author | Roel Kluin <12o3l@tiscali.nl> | 2008-04-28 17:44:43 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-28 17:44:43 -0400 |
commit | a83ead23449759b14aa1f194576ac442e84d3efb (patch) | |
tree | f25a948c332bd108b7ce7412c71ca357b33c9059 /drivers/ide | |
parent | 3ced5c49bd2d1f2c7f769e3a54385883de63a652 (diff) |
ide-cd: fix test unsigned var < 0
valid is unsigned and cannot be below 0.
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Cc: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-cd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 0881ddc5831..cebe7583840 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -182,8 +182,6 @@ static void cdrom_analyze_sense_data(ide_drive_t *drive, | |||
182 | sector &= ~(bio_sectors - 1); | 182 | sector &= ~(bio_sectors - 1); |
183 | valid = (sector - failed_command->sector) << 9; | 183 | valid = (sector - failed_command->sector) << 9; |
184 | 184 | ||
185 | if (valid < 0) | ||
186 | valid = 0; | ||
187 | if (sector < get_capacity(info->disk) && | 185 | if (sector < get_capacity(info->disk) && |
188 | drive->probed_capacity - sector < 4 * 75) | 186 | drive->probed_capacity - sector < 4 * 75) |
189 | set_capacity(info->disk, sector); | 187 | set_capacity(info->disk, sector); |