diff options
author | Sergey Ryazanov <ryazanov.s.a@gmail.com> | 2013-08-29 17:35:09 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-09-26 07:21:39 -0400 |
commit | a6ececf4ee24495ecf74672152e28c31cc208df3 (patch) | |
tree | 3ab1d05487ad57d68ab1af783d0575f3aac7a4ce /net/mac80211/tx.c | |
parent | c5dc164df6187e845f1a7c0542f5106c74ff5a92 (diff) |
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>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1981 | * EAPOL frames from the local station. | 1981 | * EAPOL frames from the local station. |
1982 | */ | 1982 | */ |
1983 | if (unlikely(!ieee80211_vif_is_mesh(&sdata->vif) && | 1983 | if (unlikely(!ieee80211_vif_is_mesh(&sdata->vif) && |
1984 | !is_multicast_ether_addr(hdr.addr1) && !authorized && | 1984 | !multicast && !authorized && |
1985 | (cpu_to_be16(ethertype) != sdata->control_port_protocol || | 1985 | (cpu_to_be16(ethertype) != sdata->control_port_protocol || |
1986 | !ether_addr_equal(sdata->vif.addr, skb->data + ETH_ALEN)))) { | 1986 | !ether_addr_equal(sdata->vif.addr, skb->data + ETH_ALEN)))) { |
1987 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 1987 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |