mirror of
https://github.com/opnsense/src.git
synced 2026-04-22 06:39:32 -04:00
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:
parent
a009cc2a40
commit
739804813b
1 changed files with 1 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue