Skip to contentSkip to conversation

mac80211: remove duplicate check in ieee80211_rx_mgmt_beacon().

PATCH Applied Rami Rosen 2 participants 2 messages Oct 25, 2012 mac80211

lore
Share & tools
lore

Rami Rosen

author
#0 lore raw

PATCH 1/1 mac80211: remove duplicate check in ieee80211_rx_mgmt_beacon().

This patch removes a duplicate identical check in ieee80211_rx_mgmt_beacon(), mlme.c. There is no need to make again the same check for IEEE80211_HW_PS_NULLFUNC_STACK flag. It should be done in the same block.

---
 net/mac80211/mlme.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
net/mac80211/mlme.c +1 -3
index 861e1c4..8898708 100644
@@ -2564,11 +2564,9 @@ static void ieee80211_rx_mgmt_beacon(struct ieee80211_sub_if_data *sdata,
 					  len - baselen, &elems,
 					  care_about_ies, ncrc);
 
-	if (local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK)
+	if (local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK) {
 		directed_tim = ieee80211_check_tim(elems.tim, elems.tim_len,
 						   ifmgd->aid);
-
-	if (local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK) {
 		if (directed_tim) {
 			if (local->hw.conf.dynamic_ps_timeout > 0) {
 				if (local->hw.conf.flags & IEEE80211_CONF_PS) {
Signature · 1 line
1.7.11.4
maintainer Applied
#1 lore raw
Quoted 3 lines · Rami Rosen

This patch removes a duplicate identical check in ieee80211_rx_mgmt_beacon(), mlme.c. There is no need to make again the same check for IEEE80211_HW_PS_NULLFUNC_STACK flag. It should be done in the same block.

Applied.

johannes