Commit a83ead23 authored by Roel Kluin's avatar Roel Kluin Committed by Bartlomiej Zolnierkiewicz

ide-cd: fix test unsigned var < 0

valid is unsigned and cannot be below 0.
Signed-off-by: default avatarRoel Kluin <12o3l@tiscali.nl>
Cc: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 3ced5c49
......@@ -182,8 +182,6 @@ static void cdrom_analyze_sense_data(ide_drive_t *drive,
sector &= ~(bio_sectors - 1);
valid = (sector - failed_command->sector) << 9;
if (valid < 0)
valid = 0;
if (sector < get_capacity(info->disk) &&
drive->probed_capacity - sector < 4 * 75)
set_capacity(info->disk, sector);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment