ide: pass error value to ide_complete_rq()

Set rq->errors at ide_complete_rq() call sites and then pass
error value to ide_complete_rq().

[ Some rq->errors assignments look really wrong but this patch
  leaves them alone to not introduce too many changes at once. ]

There should be no functional changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Цей коміт міститься в:
Bartlomiej Zolnierkiewicz
2009-03-27 12:46:43 +01:00
джерело 37245aabfa
коміт 6902a53312
7 змінених файлів з 21 додано та 18 видалено

Переглянути файл

@@ -402,9 +402,10 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
if (uptodate == 0)
drive->failed_pc = NULL;
if (blk_special_request(rq))
if (blk_special_request(rq)) {
rq->errors = 0;
ide_complete_rq(drive, 0);
else
} else
ide_end_request(drive, uptodate, 0);
return ide_stopped;