linux/net/atm
Joe Perches 150238ebb4 atm: 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:17 -04:00
..
addr.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
addr.h
atm_misc.c atm: eliminate atm_guess_pdu2truesize() 2011-11-26 16:40:30 -05:00
atm_sysfs.c atm: expose ATM device index in sysfs 2011-05-27 13:07:21 -04:00
br2684.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
clip.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
common.c atm: Allow MSG_PEEK for atm sockets 2011-11-22 16:15:49 -05:00
common.h atm: Introduce vcc_process_recv_queue 2011-11-22 16:15:42 -05:00
ioctl.c
Kconfig
lec_arpc.h
lec.c atm: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:17 -04:00
lec.h Fix common misspellings 2011-03-31 11:26:23 -03:00
Makefile
mpc.c atm: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:17 -04:00
mpc.h
mpoa_caches.c net: Remove unnecessary returns from void function()s 2010-05-17 23:23:14 -07:00
mpoa_caches.h
mpoa_proc.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
pppoatm.c pppoatm: Fix excessive queue bloat 2012-04-13 13:03:45 -04:00
proc.c atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
protocols.h
pvc.c net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules 2011-10-31 19:30:30 -04:00
raw.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
resources.c atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
resources.h atm: correct sysfs 'device' link creation and parent relationships 2010-12-10 15:45:05 -08:00
signaling.c net: cleanup unsigned to unsigned int 2012-04-15 12:44:40 -04:00
signaling.h
svc.c net: Add export.h for EXPORT_SYMBOL/THIS_MODULE to non-modules 2011-10-31 19:30:30 -04:00