aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-atapi.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:43 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-03-27 07:46:43 -0400
commit6902a5331256e1b9f4cef95a1e3622252113b260 (patch)
treef33ef1a732425e1862fcf0bbd0e909f82d247a8a /drivers/ide/ide-atapi.c
parent37245aabfa0c628ba884cd88fe5cd633b426a1b2 (diff)
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>
Diffstat (limited to 'drivers/ide/ide-atapi.c')
-rw-r--r--drivers/ide/ide-atapi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/ide-atapi.c b/drivers/ide/ide-atapi.c
index 92c6ef6feb57..5d57af29c4c8 100644
--- a/drivers/ide/ide-atapi.c
+++ b/drivers/ide/ide-atapi.c
@@ -402,9 +402,10 @@ static ide_startstop_t ide_pc_intr(ide_drive_t *drive)
402 if (uptodate == 0) 402 if (uptodate == 0)
403 drive->failed_pc = NULL; 403 drive->failed_pc = NULL;
404 404
405 if (blk_special_request(rq)) 405 if (blk_special_request(rq)) {
406 rq->errors = 0;
406 ide_complete_rq(drive, 0); 407 ide_complete_rq(drive, 0);
407 else 408 } else
408 ide_end_request(drive, uptodate, 0); 409 ide_end_request(drive, uptodate, 0);
409 410
410 return ide_stopped; 411 return ide_stopped;