git: d8e7d35acfd2 - main - iicoc: Remove unused variable.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 12 Apr 2022 21:59:05 UTC
The branch main has been updated by jhb:

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

commit d8e7d35acfd2afe64bb6e3be4b82476cff27663f
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-12 21:58:57 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-12 21:58:57 +0000

    iicoc: Remove unused variable.
---
 sys/dev/iicbus/iicoc_pci.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/dev/iicbus/iicoc_pci.c b/sys/dev/iicbus/iicoc_pci.c
index 7a1066439404..ba076a2cb9bd 100644
--- a/sys/dev/iicbus/iicoc_pci.c
+++ b/sys/dev/iicbus/iicoc_pci.c
@@ -68,11 +68,9 @@ iicoc_detach(device_t dev)
 static int
 iicoc_attach(device_t dev)
 {
-	int bus;
 	struct iicoc_softc *sc;
 
 	sc = device_get_softc(dev);
-	bus = device_get_unit(dev);
 
 	sc->dev = dev;
 	mtx_init(&sc->sc_mtx, "iicoc", "iicoc", MTX_DEF);