diff options
author | Dan Carpenter <error27@gmail.com> | 2011-02-07 14:03:35 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-07 16:18:28 -0500 |
commit | 3ad97fbcc233a295f2ccc2c6bdeb32323e360a5e (patch) | |
tree | afd41efc01403af33b5c86bd21e74cb881a57571 | |
parent | 3a2329f2680796b0c09ff207803ea880a481c3a4 (diff) |
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>
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 291516807fc4..38e593939727 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -2245,7 +2245,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, | |||
2245 | if (sdata->vif.type == NL80211_IFTYPE_AP) { | 2245 | if (sdata->vif.type == NL80211_IFTYPE_AP) { |
2246 | ap = &sdata->u.ap; | 2246 | ap = &sdata->u.ap; |
2247 | beacon = rcu_dereference(ap->beacon); | 2247 | beacon = rcu_dereference(ap->beacon); |
2248 | if (ap && beacon) { | 2248 | if (beacon) { |
2249 | /* | 2249 | /* |
2250 | * headroom, head length, | 2250 | * headroom, head length, |
2251 | * tail length and maximum TIM length | 2251 | * tail length and maximum TIM length |