• Joe Perches's avatar
    dsa: Convert compare_ether_addr to ether_addr_equal · 8feedbb4
    Joe Perches authored
    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: 's avatarJoe Perches <joe@perches.com>
    Signed-off-by: 's avatarDavid S. Miller <davem@davemloft.net>
    8feedbb4
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
dsa.c Loading commit data...
dsa_priv.h Loading commit data...
slave.c Loading commit data...
tag_dsa.c Loading commit data...
tag_edsa.c Loading commit data...
tag_trailer.c Loading commit data...