WSL2-Linux-Kernel/net/dsa
Joe Perches 8feedbb4a7 dsa: 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:19 -04:00
..
Kconfig dsa: Move switch drivers to new directory drivers/net/dsa 2011-11-29 00:21:36 -05:00
Makefile dsa: Move switch drivers to new directory drivers/net/dsa 2011-11-29 00:21:36 -05:00
dsa.c dsa: Combine core and tagging code 2011-11-26 14:48:15 -05:00
dsa_priv.h dsa: Move all definitions needed by drivers into <net/dsa.h> 2011-11-29 00:21:36 -05:00
slave.c dsa: Convert compare_ether_addr to ether_addr_equal 2012-05-09 20:49:19 -04:00
tag_dsa.c dsa: Combine core and tagging code 2011-11-26 14:48:15 -05:00
tag_edsa.c dsa: Combine core and tagging code 2011-11-26 14:48:15 -05:00
tag_trailer.c dsa: Combine core and tagging code 2011-11-26 14:48:15 -05:00