“fc374821ddb9d40daaaf443c3d78ac2d3643ce03”上不存在“paddle/fluid/memory/allocation/aligned_allocator.cc”
提交 c178da58 编写于 作者: K Kalle Valo

ath10k: prefer ether_addr_equal() or ether_addr_equal_unaligned() over memcmp()

Fixes checkpatch warnings:

drivers/net/wireless/ath/ath10k/mac.c:452: Prefer ether_addr_equal() or ether_addr_equal_unaligned() over memcmp()
drivers/net/wireless/ath/ath10k/mac.c:455: Prefer ether_addr_equal() or ether_addr_equal_unaligned() over memcmp()
drivers/net/wireless/ath/ath10k/txrx.c:133: Prefer ether_addr_equal() or ether_addr_equal_unaligned() over memcmp()
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 beeb1a30
...@@ -449,10 +449,10 @@ static int ath10k_mac_vif_update_wep_key(struct ath10k_vif *arvif, ...@@ -449,10 +449,10 @@ static int ath10k_mac_vif_update_wep_key(struct ath10k_vif *arvif,
lockdep_assert_held(&ar->conf_mutex); lockdep_assert_held(&ar->conf_mutex);
list_for_each_entry(peer, &ar->peers, list) { list_for_each_entry(peer, &ar->peers, list) {
if (!memcmp(peer->addr, arvif->vif->addr, ETH_ALEN)) if (ether_addr_equal(peer->addr, arvif->vif->addr))
continue; continue;
if (!memcmp(peer->addr, arvif->bssid, ETH_ALEN)) if (ether_addr_equal(peer->addr, arvif->bssid))
continue; continue;
if (peer->keys[key->keyidx] == key) if (peer->keys[key->keyidx] == key)
......
...@@ -130,7 +130,7 @@ struct ath10k_peer *ath10k_peer_find(struct ath10k *ar, int vdev_id, ...@@ -130,7 +130,7 @@ struct ath10k_peer *ath10k_peer_find(struct ath10k *ar, int vdev_id,
list_for_each_entry(peer, &ar->peers, list) { list_for_each_entry(peer, &ar->peers, list) {
if (peer->vdev_id != vdev_id) if (peer->vdev_id != vdev_id)
continue; continue;
if (memcmp(peer->addr, addr, ETH_ALEN)) if (!ether_addr_equal(peer->addr, addr))
continue; continue;
return peer; return peer;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册