Date: Sat, 26 Feb 2022 19:14:42 GMT From: Scott Long <scottl@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 0fd7b4c74d7d - main - Fix "set but not used" in the bfe driver. Remove dead code. Message-ID: <202202261914.21QJEgXU007782@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by scottl: URL: https://cgit.FreeBSD.org/src/commit/?id=0fd7b4c74d7d1ba2b0c6616b1889e74bb5ba8800 commit 0fd7b4c74d7d1ba2b0c6616b1889e74bb5ba8800 Author: Scott Long <scottl@FreeBSD.org> AuthorDate: 2022-02-26 19:14:22 +0000 Commit: Scott Long <scottl@FreeBSD.org> CommitDate: 2022-02-26 19:14:22 +0000 Fix "set but not used" in the bfe driver. Remove dead code. --- sys/dev/bfe/if_bfe.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index 4d3cb164c115..2e516a88e0d7 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -864,11 +864,10 @@ bfe_get_config(struct bfe_softc *sc) static void bfe_pci_setup(struct bfe_softc *sc, u_int32_t cores) { - u_int32_t bar_orig, pci_rev, val; + u_int32_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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202261914.21QJEgXU007782>