Skip to content

Commit

Permalink
mac80211: Remove superfluous is_multicast_ether_addr() call
Browse files Browse the repository at this point in the history
Remove superfluous call and use locally stored previous result.

Signed-off-by: Sergey Ryazanov <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
rsa9000 authored and jmberg-intel committed Sep 26, 2013
1 parent c5dc164 commit a6ececf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a6ececf

Please sign in to comment.