diff --git a/sys/pci/alpm.c b/sys/pci/alpm.c index 44e0c74d7038..c58a519d9054 100644 --- a/sys/pci/alpm.c +++ b/sys/pci/alpm.c @@ -174,12 +174,11 @@ alpm_probe(device_t dev) static int alpm_attach(device_t dev) { - int rid, unit; + int rid; u_int32_t l; struct alpm_softc *alpm; alpm = device_get_softc(dev); - unit = device_get_unit(dev); /* Unlock SMBIO base register access */ l = pci_read_config(dev, ATPC, 1);