Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ad97fbc authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville
Browse files

mac80211: remove unneeded check



"ap" is the address of sdata->u.ap so it can never be NULL here.  Also
we dereferenced it on the previous line.  I removed the check.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3a2329f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2245,7 +2245,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw,
	if (sdata->vif.type == NL80211_IFTYPE_AP) {
		ap = &sdata->u.ap;
		beacon = rcu_dereference(ap->beacon);
		if (ap && beacon) {
		if (beacon) {
			/*
			 * headroom, head length,
			 * tail length and maximum TIM length