Commit a83ead23449759b14aa1f194576ac442e84d3efb
Committed by
Bartlomiej Zolnierkiewicz
1 parent
3ced5c49bd
Exists in
master
and in
20 other branches
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>
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
drivers/ide/ide-cd.c
... | ... | @@ -182,8 +182,6 @@ |
182 | 182 | sector &= ~(bio_sectors - 1); |
183 | 183 | valid = (sector - failed_command->sector) << 9; |
184 | 184 | |
185 | - if (valid < 0) | |
186 | - valid = 0; | |
187 | 185 | if (sector < get_capacity(info->disk) && |
188 | 186 | drive->probed_capacity - sector < 4 * 75) |
189 | 187 | set_capacity(info->disk, sector); |