projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ced5c4
)
ide-cd: fix test unsigned var < 0
author
Roel Kluin
<12o3l@tiscali.nl>
Mon, 28 Apr 2008 21:44:43 +0000
(23:44 +0200)
committer
Bartlomiej Zolnierkiewicz
<bzolnier@gmail.com>
Mon, 28 Apr 2008 21:44:43 +0000
(23:44 +0200)
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>
drivers/ide/ide-cd.c
patch
|
blob
|
history
diff --git
a/drivers/ide/ide-cd.c
b/drivers/ide/ide-cd.c
index 0881ddc5831ebf4d7a9a7532736e07e66335b626..cebe75838408ce3172735a629f67fc88f94c4497 100644
(file)
--- 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);