From: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Date: Thu, 29 Aug 2013 21:35:09 +0000 (+0400)
Subject: mac80211: Remove superfluous is_multicast_ether_addr() call
X-Git-Tag: v3.13-rc1~105^2~181^2^2~38^2~20
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a6ececf4ee24495ecf74672152e28c31cc208df3;p=users%2Fjedix%2Flinux-maple.git

mac80211: Remove superfluous is_multicast_ether_addr() call

Remove superfluous call and use locally stored previous result.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
---

diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
index 3456c0486b48..102ce8adf2d1 100644
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
@@ -1981,7 +1981,7 @@ netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
 	 * EAPOL frames from the local station.
 	 */
 	if (unlikely(!ieee80211_vif_is_mesh(&sdata->vif) &&
-		     !is_multicast_ether_addr(hdr.addr1) && !authorized &&
+		     !multicast && !authorized &&
 		     (cpu_to_be16(ethertype) != sdata->control_port_protocol ||
 		      !ether_addr_equal(sdata->vif.addr, skb->data + ETH_ALEN)))) {
 #ifdef CONFIG_MAC80211_VERBOSE_DEBUG