The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=1d0cadccf827b07831f659dd9ad0be853b66f10d

commit 1d0cadccf827b07831f659dd9ad0be853b66f10d
Author:     John Baldwin <[email protected]>
AuthorDate: 2022-04-09 00:25:14 +0000
Commit:     John Baldwin <[email protected]>
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)

Reply via email to