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>
This commit is contained in:
Warner Losh 2003-03-11 17:13:33 +00:00
parent a009cc2a40
commit 739804813b

View File

@ -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.