From 739804813b41402aef84df5c52987fec2b97e616 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Tue, 11 Mar 2003 17:13:33 +0000 Subject: [PATCH] Remove bogus UNLOCK in if_wi.c. Since we no longer WILOCK() in the attach routine, calling WIUNLOCK in the error case of one of the ifs for that routine is now bogus. This should have been removed when the WILOCK() was removed, but wasn't. Submitted by: "Harti Brandt" --- sys/dev/wi/if_wi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c index e7f8cd18a3e0..c0fc9b46907f 100644 --- a/sys/dev/wi/if_wi.c +++ b/sys/dev/wi/if_wi.c @@ -269,10 +269,8 @@ wi_attach(device_t dev) #endif /* Reset the NIC. */ - if (wi_reset(sc) != 0) { - WI_UNLOCK(sc); + if (wi_reset(sc) != 0) return ENXIO; /* XXX */ - } /* * Read the station address.