mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
block: remove the blk_execute_rq return value
The function only returns -EIO if rq->errors is non-zero, which is not very useful and lets a large number of callers ignore the return value. Just let the callers figure out their error themselves. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
75a500ef6e
commit
b7819b9259
16 changed files with 34 additions and 28 deletions
|
|
@ -242,10 +242,11 @@ static int nfsd4_scsi_identify_device(struct block_device *bdev,
|
|||
req->cmd[4] = bufflen & 0xff;
|
||||
req->cmd_len = COMMAND_SIZE(INQUIRY);
|
||||
|
||||
error = blk_execute_rq(rq->q, NULL, rq, 1);
|
||||
if (error) {
|
||||
blk_execute_rq(rq->q, NULL, rq, 1);
|
||||
if (rq->errors) {
|
||||
pr_err("pNFS: INQUIRY 0x83 failed with: %x\n",
|
||||
rq->errors);
|
||||
error = -EIO;
|
||||
goto out_put_request;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue