OpenCloudOS-Kernel/drivers/net/wireless/ath
Joe Perches 7367d0b573 drivers/net: Convert uses of compare_ether_addr to ether_addr_equal
Use the new bool function ether_addr_equal to add
some clarity and reduce the likelihood for misuse
of compare_ether_addr for sorting.

Done via cocci script: (and a little typing)

$ cat compare_ether_addr.cocci
@@
expression a,b;
@@
-	!compare_ether_addr(a, b)
+	ether_addr_equal(a, b)

@@
expression a,b;
@@
-	compare_ether_addr(a, b)
+	!ether_addr_equal(a, b)

@@
expression a,b;
@@
-	!ether_addr_equal(a, b) == 0
+	ether_addr_equal(a, b)

@@
expression a,b;
@@
-	!ether_addr_equal(a, b) != 0
+	!ether_addr_equal(a, b)

@@
expression a,b;
@@
-	ether_addr_equal(a, b) == 0
+	!ether_addr_equal(a, b)

@@
expression a,b;
@@
-	ether_addr_equal(a, b) != 0
+	ether_addr_equal(a, b)

@@
expression a,b;
@@
-	!!ether_addr_equal(a, b)
+	ether_addr_equal(a, b)

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-09-03 22:28:04 -04:00
..
ar5523 mac80211: Use a cfg80211_chan_def in ieee80211_hw_conf_chan 2013-03-25 19:19:35 +01:00
ath5k ath5k: debugfs: NULL-terminate strings 2013-08-26 14:09:06 -04:00
ath6kl Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2013-08-28 13:51:40 -04:00
ath9k ath9k: Enable D3/L1 ASPM fix for AR9462 2013-08-28 13:58:27 -04:00
ath10k Merge branch 'for-linville' of git://github.com/kvalo/ath 2013-08-15 15:54:06 -04:00
carl9170 drivers/net: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-03 22:28:04 -04:00
wil6210 Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next 2013-08-28 13:51:40 -04:00
Kconfig ath10k: mac80211 driver for Qualcomm Atheros 802.11ac CQA98xx devices 2013-06-12 20:52:10 +03:00
Makefile ath10k: mac80211 driver for Qualcomm Atheros 802.11ac CQA98xx devices 2013-06-12 20:52:10 +03:00
ath.h ath9k: Cleanup WLAN/BT RX diversity 2013-08-05 14:52:42 -04:00
debug.c
hw.c ath: update hardware mac address with bssid mask 2013-04-22 15:20:15 -04:00
key.c ath: Let user know which keycache method is complaining. 2013-04-08 15:28:37 -04:00
main.c ath: Add and use pr_fmt, convert printks to pr_<level> 2012-04-10 14:52:13 -04:00
reg.h ath: update hardware mac address with bssid mask 2013-04-22 15:20:15 -04:00
regd.c ath: add VHT80 support for regulatory domains 2013-06-12 14:59:40 -04:00
regd.h wireless: make the reg_notifier() void 2013-01-14 11:32:44 +01:00
regd_common.h