From: Christoph Hellwig Date: Wed, 26 Apr 2017 07:34:22 +0000 (+0200) Subject: ide-pm: always pass 0 error to ide_complete_rq in ide_do_devset X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1608fd1ca3b9357ea20ffc3a8ad2d1e4b78301a6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ide-pm: always pass 0 error to ide_complete_rq in ide_do_devset The caller only looks at the scsi_request result field anyway. Signed-off-by: Christoph Hellwig Reviewed-by: Bartlomiej Zolnierkiewicz Signed-off-by: Jens Axboe --- diff --git a/drivers/ide/ide-devsets.c b/drivers/ide/ide-devsets.c index b1223234037d..9b69c32ee560 100644 --- a/drivers/ide/ide-devsets.c +++ b/drivers/ide/ide-devsets.c @@ -187,6 +187,6 @@ ide_startstop_t ide_do_devset(ide_drive_t *drive, struct request *rq) err = setfunc(drive, *(int *)&scsi_req(rq)->cmd[1]); if (err) scsi_req(rq)->result = err; - ide_complete_rq(drive, err, blk_rq_bytes(rq)); + ide_complete_rq(drive, 0, blk_rq_bytes(rq)); return ide_stopped; }