summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-05 19:30:19 +0000
committerpfg <pfg@FreeBSD.org>2016-04-05 19:30:19 +0000
commit2388d857317f7bf58aacc845f0fed1feb6f1ac9d (patch)
tree9aab7c0bf70277bb01d2ae9f330ac2b39d0e8d33
parent3424af5a703006b5ca649ab0bce23c1deb99429b (diff)
downloadFreeBSD-src-2388d857317f7bf58aacc845f0fed1feb6f1ac9d.zip
FreeBSD-src-2388d857317f7bf58aacc845f0fed1feb6f1ac9d.tar.gz
bhyve: Remove unneeded variable ncq.
ncq was not being inititialized properly but it was not actually necessary either, so make the code smaller by removing it. CID: 1248842 Reviewed by: grehan
-rw-r--r--usr.sbin/bhyve/pci_ahci.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/bhyve/pci_ahci.c b/usr.sbin/bhyve/pci_ahci.c
index d3122cb..2ef60b7 100644
--- a/usr.sbin/bhyve/pci_ahci.c
+++ b/usr.sbin/bhyve/pci_ahci.c
@@ -427,7 +427,6 @@ ahci_port_stop(struct ahci_port *p)
struct ahci_ioreq *aior;
uint8_t *cfis;
int slot;
- int ncq;
int error;
assert(pthread_mutex_isowned_np(&p->pr_sc->mtx));
@@ -445,10 +444,7 @@ ahci_port_stop(struct ahci_port *p)
if (cfis[2] == ATA_WRITE_FPDMA_QUEUED ||
cfis[2] == ATA_READ_FPDMA_QUEUED ||
cfis[2] == ATA_SEND_FPDMA_QUEUED)
- ncq = 1;
-
- if (ncq)
- p->sact &= ~(1 << slot);
+ p->sact &= ~(1 << slot); /* NCQ */
else
p->ci &= ~(1 << slot);
OpenPOWER on IntegriCloud