Date: Sat, 9 Apr 2022 00:27:57 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 1d0cadccf827 - main - sbni: Remove unused variable. Message-ID: <202204090027.2390Rvqk056692@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1d0cadccf827b07831f659dd9ad0be853b66f10d commit 1d0cadccf827b07831f659dd9ad0be853b66f10d Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-09 00:25:14 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-09 00:25:14 +0000 sbni: Remove unused variable. --- sys/dev/sbni/if_sbni_pci.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/dev/sbni/if_sbni_pci.c b/sys/dev/sbni/if_sbni_pci.c index 10af065d22c5..abd24df842a1 100644 --- a/sys/dev/sbni/if_sbni_pci.c +++ b/sys/dev/sbni/if_sbni_pci.c @@ -76,16 +76,13 @@ static int sbni_pci_probe(device_t dev) { struct sbni_softc *sc; - u_int32_t ports; - ports = SBNI_PORTS; if (pci_get_vendor(dev) != SBNI_PCI_VENDOR || pci_get_device(dev) != SBNI_PCI_DEVICE) return (ENXIO); sc = device_get_softc(dev); if (pci_get_subdevice(dev) == 2) { - ports <<= 1; sc->slave_sc = malloc(sizeof(struct sbni_softc), M_DEVBUF, M_NOWAIT | M_ZERO); if (!sc->slave_sc)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204090027.2390Rvqk056692>