bfe: Fix set-but-unused gcc47 warning
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 8 Feb 2013 13:34:47 +0000 (21:34 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 8 Feb 2013 13:34:47 +0000 (21:34 +0800)
sys/dev/netif/bfe/if_bfe.c

index cff656a..a27ebff 100644 (file)
@@ -650,11 +650,10 @@ bfe_get_config(struct bfe_softc *sc)
 static void
 bfe_pci_setup(struct bfe_softc *sc, uint32_t cores)
 {
-       uint32_t bar_orig, pci_rev, val;
+       uint32_t bar_orig, val;
 
        bar_orig = pci_read_config(sc->bfe_dev, BFE_BAR0_WIN, 4);
        pci_write_config(sc->bfe_dev, BFE_BAR0_WIN, BFE_REG_PCI, 4);
-       pci_rev = CSR_READ_4(sc, BFE_SBIDHIGH) & BFE_RC_MASK;
 
        val = CSR_READ_4(sc, BFE_SBINTVEC);
        val |= cores;