lpfc: remove use of FC-specific error codes
authorJames Smart <jsmart2021@gmail.com>
Thu, 7 Sep 2017 23:27:29 +0000 (16:27 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Sep 2017 14:56:05 +0000 (08:56 -0600)
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>
drivers/scsi/lpfc/lpfc_nvme.c

index 79ba3ce063a4f847ce8187d3290ecf5a309f62b9..23bdb1ca106e459355aed0fa7627d2665a7312a3 100644 (file)
@@ -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;
                }
        }