Skip to content

Commit

Permalink
ide-pm: always pass 0 error to ide_complete_rq in ide_do_devset
Browse files Browse the repository at this point in the history
The caller only looks at the scsi_request result field anyway.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Christoph Hellwig authored and axboe committed Apr 26, 2017
1 parent ce210e9 commit 1608fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ide/ide-devsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 1608fd1

Please sign in to comment.