From: Roel Kluin <12o3l@tiscali.nl> Date: Mon, 28 Apr 2008 21:44:43 +0000 (+0200) Subject: ide-cd: fix test unsigned var < 0 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a83ead23449759b14aa1f194576ac442e84d3efb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 0881ddc5831e..cebe75838408 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, 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);