mac80211: Remove superfluous is_multicast_ether_addr() call
authorSergey Ryazanov <ryazanov.s.a@gmail.com>
Thu, 29 Aug 2013 21:35:09 +0000 (01:35 +0400)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 26 Sep 2013 11:21:39 +0000 (13:21 +0200)
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>
net/mac80211/tx.c

index 3456c0486b482bfb44a6f797ebaff5d70bde4940..102ce8adf2d1aac80f92ba2c33cb7ad207d2ffda 100644 (file)
@@ -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