diff options
author | Joe Perches <joe@perches.com> | 2012-05-08 20:56:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-10 02:49:19 +0200 |
commit | 8feedbb4a710784d2858acba5c90e903e93e36eb (patch) | |
tree | d8a23fc9414b5ce994bd23426844a56afecb3fc5 /include | |
parent | wireless: Convert compare_ether_addr to ether_addr_equal by hand (diff) | |
download | linux-8feedbb4a710784d2858acba5c90e903e93e36eb.tar.xz linux-8feedbb4a710784d2858acba5c90e903e93e36eb.zip |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions