Remove duplicated code.
Reported by: Coverity CID: 1394893 MFC after: 1 week Sponsored by: iXsystems Inc.
This commit is contained in:
parent
9e59a2e8ce
commit
3955e1c03a
@ -1159,11 +1159,6 @@ pci_nvme_io_done(struct blockif_req *br, int err)
|
||||
DPRINTF(("%s error %d %s\r\n", __func__, err, strerror(err)));
|
||||
|
||||
/* TODO return correct error */
|
||||
if (err)
|
||||
code = NVME_SC_DATA_TRANSFER_ERROR;
|
||||
else
|
||||
code = NVME_SC_SUCCESS;
|
||||
|
||||
code = err ? NVME_SC_DATA_TRANSFER_ERROR : NVME_SC_SUCCESS;
|
||||
pci_nvme_status_genc(&status, code);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user