1
0
Fork 0

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: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
hifive-unleashed-5.1
Dan Carpenter 2011-02-07 22:03:35 +03:00 committed by John W. Linville
parent 3a2329f268
commit 3ad97fbcc2
1 changed files with 1 additions and 1 deletions

View File

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