projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce210e9
)
ide-pm: always pass 0 error to ide_complete_rq in ide_do_devset
author
Christoph Hellwig
<hch@lst.de>
Wed, 26 Apr 2017 07:34:22 +0000
(09:34 +0200)
committer
Jens Axboe
<axboe@fb.com>
Wed, 26 Apr 2017 13:53:35 +0000
(07:53 -0600)
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>
drivers/ide/ide-devsets.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ide/ide-devsets.c
b/drivers/ide/ide-devsets.c
index b1223234037daec444adde1920201952c9630413..9b69c32ee560119bd3c74efe09ff0b48a139063a 100644
(file)
--- 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;
}