HomeFreeBSD

MFC r336184: net80211: Fix ifdetach w/o ifattach, small whitespace cleanup

Description

MFC r336184: net80211: Fix ifdetach w/o ifattach, small whitespace cleanup

As the comment says, ifdetach might be called during the course of driver
detach if initialization failed. This shouldn't be a total failure, though,
we just have nothing to do there.

This has been modified slightly from Augustin's original commit to move the
bail-out slightly earlier since the ic wouldn't have been added to the
ic list in the first place, and a comment has been added describing when
this might be an issue.

Details

Provenance
kevansAuthored on
Parents
rS337949: MFC r335785, r335812
Branches
Unknown
Tags
Unknown