mac80211: remove redundant check
authorJohannes Berg <johannes.berg@intel.com>
Fri, 18 Jan 2013 20:21:31 +0000 (21:21 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 24 Jan 2013 15:07:58 +0000 (16:07 +0100)
commit782d2673655c05a1c0335fe0ee4cb62c23bcc231
treeaf61e03bf4fb2a5963120d16c71926b8bfd84310
parent683d41ae6755e6ae297ec09603c229795ab9566e
mac80211: remove redundant check

There's no need to have two checks for "associated"
in ieee80211_sta_restart(), make the first one locked
to not race (unlikely at this point during resume)
and remove the second check.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c