Remove duplicated code.

Reported by:	Coverity
CID:		1394893
MFC after:	1 week
Sponsored by:	iXsystems Inc.
This commit is contained in:
Marcelo Araujo 2018-08-16 06:35:44 +00:00
parent 9e59a2e8ce
commit 3955e1c03a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=337888

View File

@ -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);