Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);