summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJames Smart <jsmart2021@gmail.com>2017-09-08 01:27:29 +0200
committerJens Axboe <axboe@kernel.dk>2017-09-25 16:56:05 +0200
commit8e009ce84683fa124b23ff5cb7fd87c48b331b88 (patch)
treeaf0eccb4698fa8df9802e1ffd25d8035628c5fa1 /drivers
parentnvmet-fcloop: remove use of FC-specific error codes (diff)
downloadlinux-8e009ce84683fa124b23ff5cb7fd87c48b331b88.tar.xz
linux-8e009ce84683fa124b23ff5cb7fd87c48b331b88.zip
lpfc: remove use of FC-specific error codes
The lpfc driver uses the FC-specific error when it needed to return an error to the FC-NVME transport. Convert to use a generic value instead. Signed-off-by: James Smart <james.smart@broadcom.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/lpfc/lpfc_nvme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_nvme.c b/drivers/scsi/lpfc/lpfc_nvme.c
index 79ba3ce063a4..23bdb1ca106e 100644
--- a/drivers/scsi/lpfc/lpfc_nvme.c
+++ b/drivers/scsi/lpfc/lpfc_nvme.c
@@ -884,7 +884,7 @@ out_err:
wcqe->total_data_placed);
nCmd->transferred_length = 0;
nCmd->rcv_rsplen = 0;
- nCmd->status = NVME_SC_FC_TRANSPORT_ERROR;
+ nCmd->status = NVME_SC_INTERNAL;
}
}