[net80211] ok ok if_xname won't ever be NULL.
Somewhere in net80211 if_xname is checked against NULL but it doesn't trigger a compiler warning, but this does. So DTRT for FreeBSD and the other if_xname derefences can be converted to this function at a later time.
This commit is contained in:
parent
8c5059e9ea
commit
ee424b7351
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362016
@ -1042,7 +1042,7 @@ wlan_iflladdr(void *arg __unused, struct ifnet *ifp)
|
||||
const char *
|
||||
ieee80211_get_vap_ifname(struct ieee80211vap *vap)
|
||||
{
|
||||
if ((vap->iv_ifp == NULL) || (vap->iv_ifp->if_xname == NULL))
|
||||
if (vap->iv_ifp == NULL)
|
||||
return "(none)";
|
||||
return vap->iv_ifp->if_xname;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user