linux/net/mac80211
Joe Perches b203ca3912 mac80211: Convert 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:

$ 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>
2012-05-09 20:49:18 -04:00
..
Kconfig mac80211: Implement mesh synchronization framework 2012-04-10 15:20:31 -04:00
Makefile mac80211: Implement mesh synchronization framework 2012-04-10 15:20:31 -04:00
aes_ccm.c
aes_ccm.h
aes_cmac.c
aes_cmac.h
agg-rx.c
agg-tx.c mac80211: add improved HW queue control 2012-04-11 16:23:50 -04:00
cfg.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
cfg.h
chan.c mac80211: remove channel type argument from rate_update 2012-04-10 14:54:08 -04:00
debugfs.c
debugfs.h
debugfs_key.c
debugfs_key.h
debugfs_netdev.c mac80211: rename AP variable num_sta_authorized to num_mcast_sta 2012-04-24 14:54:28 -04:00
debugfs_netdev.h
debugfs_sta.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2012-04-12 13:49:28 -04:00
debugfs_sta.h
driver-ops.h cfg80211/mac80211: enable proper device_set_wakeup_enable handling 2012-04-11 16:23:57 -04:00
driver-trace.c
driver-trace.h cfg80211/mac80211: enable proper device_set_wakeup_enable handling 2012-04-11 16:23:57 -04:00
event.c
ht.c mac80211: set HT channel before association 2012-04-10 14:54:07 -04:00
ibss.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
ieee80211_i.h mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
iface.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
key.c
key.h
led.c
led.h
main.c mac80211: Support on-channel scan option. 2012-04-23 15:28:33 -04:00
mesh.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
mesh.h mac80211: Adds clean sdata helper 2012-04-24 14:56:10 -04:00
mesh_hwmp.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
mesh_pathtbl.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
mesh_plink.c mac80211: don't set mesh peer ht caps if ht disabled 2012-04-23 15:34:07 -04:00
mesh_sync.c mac80211: fixup for mesh TSF adjustment latency in Toffset setpoint 2012-04-23 15:37:41 -04:00
michael.c
michael.h
mlme.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
offchannel.c
pm.c mac80211: add explicit monitor interface if needed 2012-04-11 16:23:49 -04:00
rate.c
rate.h mac80211: notify driver of rate control updates 2012-04-10 14:54:08 -04:00
rc80211_minstrel.c mac80211: remove hw.conf.channel usage where possible 2012-04-13 14:32:50 -04:00
rc80211_minstrel.h
rc80211_minstrel_debugfs.c
rc80211_minstrel_ht.c mac80211: remove hw.conf.channel usage where possible 2012-04-13 14:32:50 -04:00
rc80211_minstrel_ht.h
rc80211_minstrel_ht_debugfs.c
rc80211_pid.h
rc80211_pid_algo.c
rc80211_pid_debugfs.c
rx.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
scan.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
spectmgmt.c
sta_info.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
sta_info.h mac80211: Implement mesh synchronization framework 2012-04-10 15:20:31 -04:00
status.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
tkip.c
tkip.h
tx.c mac80211: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:18 -04:00
util.c mac80211: check for non-managed interface 2012-04-24 14:54:27 -04:00
wep.c
wep.h
wme.c mac80211: use IEEE80211_NUM_ACS 2012-04-10 14:56:10 -04:00
wme.h
work.c mac80211: protect ->scanning by mutex in ieee80211_work_work() 2012-04-13 14:31:50 -04:00
wpa.c
wpa.h