qla2xxx: remove use of FC-specific error codes
authorJames Smart <jsmart2021@gmail.com>
Thu, 14 Sep 2017 18:30:15 +0000 (11:30 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Sep 2017 14:56:05 +0000 (08:56 -0600)
The qla2xxx 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>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/qla2xxx/qla_nvme.c

index 1f59e7a74c7b7b9dc7db660e6114420bc90ce8b7..6b33a1f24f56169a3a17803e5a6952da2e6445a6 100644 (file)
@@ -180,7 +180,7 @@ static void qla_nvme_sp_done(void *ptr, int res)
                goto rel;
 
        if (unlikely(res == QLA_FUNCTION_FAILED))
-               fd->status = NVME_SC_FC_TRANSPORT_ERROR;
+               fd->status = NVME_SC_INTERNAL;
        else
                fd->status = 0;