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 | 89f78b3261f7e331e41753ea2459fbb9b60a6f7a (patch) | |
tree | f294393d4d4a1db653c5f0ce7b5504ff589e4a3b /drivers/ide/ide-disk.c | |
parent | 6902a5331256e1b9f4cef95a1e3622252113b260 (diff) |
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>
Diffstat (limited to 'drivers/ide/ide-disk.c')
-rw-r--r-- | drivers/ide/ide-disk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index dae9d988de10..ad9a3f54d21d 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -184,6 +184,8 @@ static ide_startstop_t ide_do_rw_disk(ide_drive_t *drive, struct request *rq, | |||
184 | 184 | ||
185 | if (!blk_fs_request(rq)) { | 185 | if (!blk_fs_request(rq)) { |
186 | blk_dump_rq_flags(rq, "ide_do_rw_disk - bad command"); | 186 | blk_dump_rq_flags(rq, "ide_do_rw_disk - bad command"); |
187 | if (rq->errors == 0) | ||
188 | rq->errors = -EIO; | ||
187 | ide_end_request(drive, 0, 0); | 189 | ide_end_request(drive, 0, 0); |
188 | return ide_stopped; | 190 | return ide_stopped; |
189 | } | 191 | } |