Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Aug 2018 06:35:44 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r337888 - head/usr.sbin/bhyve
Message-ID:  <201808160635.w7G6Zi83069621@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Thu Aug 16 06:35:44 2018
New Revision: 337888
URL: https://svnweb.freebsd.org/changeset/base/337888

Log:
  Remove duplicated code.
  
  Reported by:	Coverity
  CID:		1394893
  MFC after:	1 week
  Sponsored by:	iXsystems Inc.

Modified:
  head/usr.sbin/bhyve/pci_nvme.c

Modified: head/usr.sbin/bhyve/pci_nvme.c
==============================================================================
--- head/usr.sbin/bhyve/pci_nvme.c	Thu Aug 16 06:31:54 2018	(r337887)
+++ head/usr.sbin/bhyve/pci_nvme.c	Thu Aug 16 06:35:44 2018	(r337888)
@@ -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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808160635.w7G6Zi83069621>