svn commit: r293408 - stable/10/usr.sbin/bhyve
Marcelo Araujo
araujo at FreeBSD.org
Fri Jan 8 02:54:23 UTC 2016
Author: araujo
Date: Fri Jan 8 02:54:21 2016
New Revision: 293408
URL: https://svnweb.freebsd.org/changeset/base/293408
Log:
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
Modified:
stable/10/usr.sbin/bhyve/pci_emul.c
Modified: stable/10/usr.sbin/bhyve/pci_emul.c
==============================================================================
--- stable/10/usr.sbin/bhyve/pci_emul.c Fri Jan 8 02:52:04 2016 (r293407)
+++ stable/10/usr.sbin/bhyve/pci_emul.c Fri Jan 8 02:54:21 2016 (r293408)
@@ -863,10 +863,9 @@ msixcap_cfgwrite(struct pci_devinst *pi,
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;
More information about the svn-src-stable
mailing list