original_kernel/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
Makefile
rt2x00.h
rt2x00config.c
rt2x00crypto.c
rt2x00debug.c
rt2x00debug.h
rt2x00dev.c
rt2x00dump.h
rt2x00firmware.c
rt2x00leds.c
rt2x00leds.h
rt2x00lib.h
rt2x00link.c
rt2x00mac.c
rt2x00mmio.c
rt2x00mmio.h
rt2x00pci.c
rt2x00pci.h
rt2x00queue.c
rt2x00queue.h
rt2x00reg.h
rt2x00soc.c
rt2x00soc.h
rt2x00usb.c
rt2x00usb.h
rt61pci.c
rt61pci.h
rt73usb.c
rt73usb.h
rt2400pci.c
rt2400pci.h
rt2500pci.c
rt2500pci.h
rt2500usb.c
rt2500usb.h
rt2800.h
rt2800lib.c
rt2800lib.h
rt2800pci.c
rt2800pci.h
rt2800usb.c
rt2800usb.h