linux-sg2042/drivers/net/wireless/rt2x00
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
..
Kconfig Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2013-07-25 16:48:01 -04:00
Makefile rt2x00: rt2x00pci: fix build error on Ralink RT3x5x SoCs 2013-04-03 14:50:06 -04:00
rt2x00.h rt2x00: rt2800lib: add default_power3 field for three-chain devices 2013-07-22 16:54:33 -04:00
rt2x00config.c mac80211: Use a cfg80211_chan_def in ieee80211_hw_conf_chan 2013-03-25 19:19:35 +01:00
rt2x00crypto.c
rt2x00debug.c rt2x00: Use more current logging styles, shrink object size 2013-04-22 15:20:26 -04:00
rt2x00debug.h rt2x00: Add debugfs access for rfcsr register 2012-05-08 21:53:46 -04:00
rt2x00dev.c drivers/net: Convert uses of compare_ether_addr to ether_addr_equal 2013-09-03 22:28:04 -04:00
rt2x00dump.h
rt2x00firmware.c rt2x00: Use more current logging styles, shrink object size 2013-04-22 15:20:26 -04:00
rt2x00leds.c rt2x00: Use more current logging styles, shrink object size 2013-04-22 15:20:26 -04:00
rt2x00leds.h
rt2x00lib.h rt2x00: Use GFP_KERNEL for rx buffer allocation on USB devices 2012-04-23 15:35:29 -04:00
rt2x00link.c rt2x00:Add VCO recalibration 2012-02-27 14:05:44 -05:00
rt2x00mac.c rt2x00: Use more current logging styles, shrink object size 2013-04-22 15:20:26 -04:00
rt2x00mmio.c rt2x00: Use more current logging styles, shrink object size 2013-04-22 15:20:26 -04:00
rt2x00mmio.h rt2x00: rt2x00mmio: remove unused rt2x00pci_* defines 2013-04-10 14:10:32 -04:00
rt2x00pci.c rt2x00pci: Use PCI MSIs whenever possible 2013-05-22 15:05:32 -04:00
rt2x00pci.h rt2x00: rt2x00pci: fix build error on Ralink RT3x5x SoCs 2013-04-03 14:50:06 -04:00
rt2x00queue.c net: wireless: rt2x00: Staticize rt2x00queue_pause_queue_nocheck() 2013-08-09 15:57:55 -04:00
rt2x00queue.h rt2x00: remove data_queue_desc struct 2013-06-12 14:59:38 -04:00
rt2x00reg.h
rt2x00soc.c rt2x00: Use more current logging styles, shrink object size 2013-04-22 15:20:26 -04:00
rt2x00soc.h
rt2x00usb.c rt2x00: Use more current logging styles, shrink object size 2013-04-22 15:20:26 -04:00
rt2x00usb.h
rt61pci.c rt2x00: read 5GHz TX power values from the correct offset 2013-06-24 14:44:25 -04:00
rt61pci.h rt2x00: Unify GPIO register field namings 2012-09-07 15:08:40 -04:00
rt73usb.c rt2x00: read 5GHz TX power values from the correct offset 2013-06-24 14:44:25 -04:00
rt73usb.h rt2x00: Unify GPIO register field namings 2012-09-07 15:08:40 -04:00
rt2400pci.c rt2x00: move extra_tx_headroom field from rt2x00_ops to rt2x00_dev 2013-06-12 15:02:15 -04:00
rt2400pci.h rt2x00: Unify GPIO register field namings 2012-09-07 15:08:40 -04:00
rt2500pci.c rt2x00: move extra_tx_headroom field from rt2x00_ops to rt2x00_dev 2013-06-12 15:02:15 -04:00
rt2500pci.h rt2x00: Unify GPIO register field namings 2012-09-07 15:08:40 -04:00
rt2500usb.c rt2x00: move extra_tx_headroom field from rt2x00_ops to rt2x00_dev 2013-06-12 15:02:15 -04:00
rt2500usb.h rt2x00: Unify GPIO register field namings 2012-09-07 15:08:40 -04:00
rt2800.h rt2x00: rt2800lib: don't hardcode beacon offsets 2013-08-26 14:09:01 -04:00
rt2800lib.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless 2013-08-28 10:36:09 -04:00
rt2800lib.h rt2x00: rt2800lib: introduce rt2800_get_txwi_rxwi_size helper 2013-08-16 14:17:50 -04:00
rt2800pci.c rt2x00: rt2800pci: fix AUX_CTRL register setup for RT3090/3390/3593/5592 2013-08-16 14:17:51 -04:00
rt2800pci.h rt2x00 : RT3290 chip support v4 2012-06-20 14:41:49 -04:00
rt2800usb.c rt2800usb: Add WLI-UC-G300HP's Product ID. 2013-08-28 13:58:28 -04:00
rt2800usb.h