summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-03-11 17:13:33 +0000
committerimp <imp@FreeBSD.org>2003-03-11 17:13:33 +0000
commit62238aca8dc63cc92b3a4f08af7525d57c8cab89 (patch)
treeb4a82ff1375fd79ab298bab1ec05689412da5c1d
parent4f8d0aecc07558936f1187d42a60ff97ddff31f2 (diff)
downloadFreeBSD-src-62238aca8dc63cc92b3a4f08af7525d57c8cab89.zip
FreeBSD-src-62238aca8dc63cc92b3a4f08af7525d57c8cab89.tar.gz
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" <brandt@fokus.fraunhofer.de>
-rw-r--r--sys/dev/wi/if_wi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/wi/if_wi.c b/sys/dev/wi/if_wi.c
index e7f8cd1..c0fc9b4 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.
OpenPOWER on IntegriCloud