From b08a6ac7b9d53d9c8af42dc1cd4b5c364004ef5b Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 19 Aug 2002 06:56:50 +0000 Subject: [PATCH] Remove the SIS_LOCK/SIS_UNLOCK from sis_attach(). It makes WITNESS barf and there seem to be little room for contention during attach. --- sys/pci/if_sis.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c index 977e83fc196e..ed48639bd476 100644 --- a/sys/pci/if_sis.c +++ b/sys/pci/if_sis.c @@ -795,7 +795,6 @@ static int sis_attach(dev) mtx_init(&sc->sis_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, MTX_DEF | MTX_RECURSE); - SIS_LOCK(sc); if (pci_get_device(dev) == SIS_DEVICEID_900) sc->sis_type = SIS_TYPE_900; @@ -1116,11 +1115,9 @@ static int sis_attach(dev) ifp->if_data.ifi_hdrlen = sizeof(struct ether_vlan_header); callout_handle_init(&sc->sis_stat_ch); - SIS_UNLOCK(sc); return(0); fail: - SIS_UNLOCK(sc); mtx_destroy(&sc->sis_mtx); return(error); }