Joe Perches 2e42e4747e drivers/net: 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-10 23:33:01 -04:00
..
2012-04-12 15:10:32 -04:00
2012-04-13 14:32:50 -04:00
2012-04-23 15:35:30 -04:00
2012-04-23 15:35:30 -04:00
2012-03-26 15:07:23 -04:00
2012-01-10 15:46:39 -05:00
2011-10-11 16:41:26 -04:00
2012-04-23 15:35:30 -04:00
2012-03-15 13:45:04 -04:00
2012-04-11 16:23:52 -04:00
2012-02-27 14:06:40 -05:00
2012-02-27 14:06:36 -05:00
2011-05-19 13:54:05 -04:00
2012-03-12 14:19:37 -04:00
2011-05-19 13:54:05 -04:00
2012-04-17 14:17:05 -04:00