qla2xxx: remove use of FC-specific error codes
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>
This commit is contained in:
parent
8e009ce846
commit
39a550d2d9
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue