diff options
author | Hannes Reinecke <hare@suse.de> | 2021-04-27 11:30:08 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-06-01 05:48:20 +0300 |
commit | 21eccf304b3a16c26fc2878faca4665907a318ec (patch) | |
tree | 59d1ede5710b367e26d7325f5fe03b22bb31b6be /drivers/scsi | |
parent | 00da6a701a69b685ee7cac95b5c276e2d011dbca (diff) | |
download | linux-21eccf304b3a16c26fc2878faca4665907a318ec.tar.xz |
scsi: scsi_ioctl: Return error code when blk_rq_map_kern() fails
The callers of sg_scsi_ioctl() already check for negative return values, so
we can drop the usage of DRIVER_ERROR and return the error from
blk_rq_map_kern() instead.
Link: https://lore.kernel.org/r/20210427083046.31620-3-hare@suse.de
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions