svn commit: r292970 - head/usr.sbin/bhyve

Marcelo Araujo araujo at FreeBSD.org
Thu Dec 31 01:55:53 UTC 2015


Author: araujo
Date: Thu Dec 31 01:55:51 2015
New Revision: 292970
URL: https://svnweb.freebsd.org/changeset/base/292970

Log:
  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

Modified:
  head/usr.sbin/bhyve/pci_emul.c

Modified: head/usr.sbin/bhyve/pci_emul.c
==============================================================================
--- head/usr.sbin/bhyve/pci_emul.c	Thu Dec 31 01:54:07 2015	(r292969)
+++ head/usr.sbin/bhyve/pci_emul.c	Thu Dec 31 01:55:51 2015	(r292970)
@@ -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-head mailing list