aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/fc.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2019-03-12 18:05:10 +0100
committerChristoph Hellwig <hch@lst.de>2019-04-05 08:07:56 +0200
commitcfe03c2ec46200dfefa5167e6a2bb50c0426c5f4 (patch)
tree92cac7d8c250bf1301e6a0e50a72746275d2e37a /drivers/nvme/target/fc.c
parentnvme: avoid double dereference to convert le to cpu (diff)
downloadlinux-dev-cfe03c2ec46200dfefa5167e6a2bb50c0426c5f4.tar.xz
linux-dev-cfe03c2ec46200dfefa5167e6a2bb50c0426c5f4.zip
nvmet: avoid double errno conversions
Use errno_to_nvme_status to convert from a negative errno to a nvme status field instead of going through a blk_status_t. Also remove the pointless status variable in nvmet_bdev_execute_write_zeroes. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions