aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-cd.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
commit37245aabfa0c628ba884cd88fe5cd633b426a1b2 (patch)
treea1513de9d27f0b7f2fb801807fa06b7fa4232981 /drivers/ide/ide-cd.c
parent1caf236dafb7291f9fdfe54b12dd945aec0dca03 (diff)
ide: sanitize ide_end_rq()
* Move 'uptodate' quirk from ide_end_rq() to its users. * Move quirks for blk_noretry_request() and !blk_fs_request() requests from ide_end_rq() to ide_end_request(). There should be no functional changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r--drivers/ide/ide-cd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 830fd570e760..bbbebcbb1e3d 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -272,7 +272,7 @@ static void cdrom_end_request(ide_drive_t *drive, int uptodate)
272 * now end the failed request 272 * now end the failed request
273 */ 273 */
274 if (blk_fs_request(failed)) { 274 if (blk_fs_request(failed)) {
275 if (ide_end_rq(drive, failed, 0, 275 if (ide_end_rq(drive, failed, -EIO,
276 failed->hard_nr_sectors << 9)) 276 failed->hard_nr_sectors << 9))
277 BUG(); 277 BUG();
278 } else { 278 } else {