Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Dec 2015 01:55:52 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292970 - head/usr.sbin/bhyve
Message-ID:  <201512310155.tBV1tqcr004276@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512310155.tBV1tqcr004276>