ide: move rq->errors quirk out from ide_end_request()
Move rq->errors quirk out from ide_end_request() to its call sites. There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
@@ -405,8 +405,13 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
|
||||
if (blk_special_request(rq)) {
|
||||
rq->errors = 0;
|
||||
ide_complete_rq(drive, 0);
|
||||
} else
|
||||
} else {
|
||||
if (blk_fs_request(rq) == 0 && uptodate <= 0) {
|
||||
if (rq->errors == 0)
|
||||
rq->errors = -EIO;
|
||||
}
|
||||
ide_end_request(drive, uptodate, 0);
|
||||
}
|
||||
|
||||
return ide_stopped;
|
||||
}
|
||||
|
Reference in New Issue
Block a user