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
This commit is contained in:
Pedro F. Giffuni 2016-04-05 19:30:19 +00:00
parent e2bb79f70f
commit 91e34616df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297589

View File

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