Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6ececf4 authored by Sergey Ryazanov's avatar Sergey Ryazanov Committed by Johannes Berg
Browse files

mac80211: Remove superfluous is_multicast_ether_addr() call



Remove superfluous call and use locally stored previous result.

Signed-off-by: default avatarSergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent c5dc164d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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