diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-26 09:34:22 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-26 07:53:35 -0600 |
commit | 1608fd1ca3b9357ea20ffc3a8ad2d1e4b78301a6 (patch) | |
tree | 6d24e39bc79752422036d0cbb1c2b3e55ff3c8eb /drivers/ide | |
parent | ce210e92238e976143c07a2d19d18c8919cb16a1 (diff) | |
download | op-kernel-dev-1608fd1ca3b9357ea20ffc3a8ad2d1e4b78301a6.zip op-kernel-dev-1608fd1ca3b9357ea20ffc3a8ad2d1e4b78301a6.tar.gz |
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 <hch@lst.de>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ide-devsets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-devsets.c b/drivers/ide/ide-devsets.c index b122323..9b69c32 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; } |