mac80211: remove unnecessary num_mcast_sta check
authorMichael Braun <michael-dev@fami-braun.de>
Mon, 10 Oct 2016 17:12:20 +0000 (19:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 12 Oct 2016 09:11:08 +0000 (11:11 +0200)
commit5f9994bd4a58f72a4312fb3e09c7fe2c4ca95b82
tree1817e2f2909c923a43e4b8ea267f679a17b227ad
parent246ad56e25b4005648cd54e0f0ab8f0357f8a42a
mac80211: remove unnecessary num_mcast_sta check

Checking for num_mcast_sta in __ieee80211_request_smps_ap() is
unnecessary as sta list will be empty in this case anyway, so
the list iteration will just exit immediately. Since this isn't
a "hot" code path, it doesn't really matter, and the next patch
will redefine num_mcast_sta to make this check invalid.

Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
[change commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c