diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:43 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-27 07:46:43 -0400 |
commit | 6902a5331256e1b9f4cef95a1e3622252113b260 (patch) | |
tree | f33ef1a732425e1862fcf0bbd0e909f82d247a8a /drivers/ide/ide-floppy.c | |
parent | 37245aabfa0c628ba884cd88fe5cd633b426a1b2 (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-floppy.c')
-rw-r--r-- | drivers/ide/ide-floppy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index f56e9a918b99..407e4914dfd1 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -260,7 +260,7 @@ static ide_startstop_t ide_floppy_do_request(ide_drive_t *drive, | |||
260 | printk(KERN_ERR PFX "%s: I/O error\n", drive->name); | 260 | printk(KERN_ERR PFX "%s: I/O error\n", drive->name); |
261 | 261 | ||
262 | if (blk_special_request(rq)) { | 262 | if (blk_special_request(rq)) { |
263 | rq->errors = IDE_DRV_ERROR_GENERAL; | 263 | rq->errors = 0; |
264 | ide_complete_rq(drive, 0); | 264 | ide_complete_rq(drive, 0); |
265 | return ide_stopped; | 265 | return ide_stopped; |
266 | } else | 266 | } else |