diff options
author | araujo <araujo@FreeBSD.org> | 2016-01-08 02:54:21 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2016-01-08 02:54:21 +0000 |
commit | b6b275587fa55a87f738369e41c6a18db284aed3 (patch) | |
tree | ed2d459692b3fe07cbb3fd698f8505d432380040 /usr.sbin | |
parent | b3dc960e1951c63abe46e6dda55dc79258faeab1 (diff) | |
download | FreeBSD-src-b6b275587fa55a87f738369e41c6a18db284aed3.zip FreeBSD-src-b6b275587fa55a87f738369e41c6a18db284aed3.tar.gz |
MFC: r292970
Clean up unused-but-set-variable spotted by gcc-4.9.
Reviewed by: ngie
Approved by: rodrigc (mentor)
Sponsored by: gandi.net
Differential Revision: https://reviews.freebsd.org/D4777
Diffstat (limited to 'usr.sbin')
-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; |