diff options
author | araujo <araujo@FreeBSD.org> | 2015-12-31 01:55:51 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2015-12-31 01:55:51 +0000 |
commit | 095eb8147518134ad20380dc0ee73a8da400b656 (patch) | |
tree | 7e90a2752ee21fc77b1f8e397807b8e604ab0de6 /usr.sbin/bhyve | |
parent | 0be55d57decb949acf2ef026080ebaf8bd94d8c0 (diff) | |
download | FreeBSD-src-095eb8147518134ad20380dc0ee73a8da400b656.zip FreeBSD-src-095eb8147518134ad20380dc0ee73a8da400b656.tar.gz |
Clean up unused-but-set-variable spotted by gcc-4.9.
Reviewed by: grehan
Approved by: bapt (mentor)
Differential Revision: https://reviews.freebsd.org/D4735
Diffstat (limited to 'usr.sbin/bhyve')
-rw-r--r-- | usr.sbin/bhyve/pci_emul.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/bhyve/pci_emul.c b/usr.sbin/bhyve/pci_emul.c index af427ef..c6763c9 100644 --- a/usr.sbin/bhyve/pci_emul.c +++ b/usr.sbin/bhyve/pci_emul.c @@ -863,10 +863,9 @@ msixcap_cfgwrite(struct pci_devinst *pi, int capoff, int offset, int bytes, uint32_t val) { uint16_t msgctrl, rwmask; - int off, table_bar; + int off; off = offset - capoff; - table_bar = pi->pi_msix.table_bar; /* Message Control Register */ if (off == 2 && bytes == 2) { rwmask = PCIM_MSIXCTRL_MSIX_ENABLE | PCIM_MSIXCTRL_FUNCTION_MASK; |