• Joe Perches's avatar
    net, drivers/net: Convert compare_ether_addr_64bits to ether_addr_equal_64bits · a6700db1
    Joe Perches authored
    Use the new bool function ether_addr_equal_64bits to add
    some clarity and reduce the likelihood for misuse of
    compare_ether_addr_64bits for sorting.
    
    Done via cocci script:
    
    $ cat compare_ether_addr_64bits.cocci
    @@
    expression a,b;
    @@
    -	!compare_ether_addr_64bits(a, b)
    +	ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	compare_ether_addr_64bits(a, b)
    +	!ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	!ether_addr_equal_64bits(a, b) == 0
    +	ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	!ether_addr_equal_64bits(a, b) != 0
    +	!ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	ether_addr_equal_64bits(a, b) == 0
    +	!ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	ether_addr_equal_64bits(a, b) != 0
    +	ether_addr_equal_64bits(a, b)
    
    @@
    expression a,b;
    @@
    -	!!ether_addr_equal_64bits(a, b)
    +	ether_addr_equal_64bits(a, b)
    Signed-off-by: default avatarJoe Perches <joe@perches.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    a6700db1
Name
Last commit
Last update
..
Makefile Loading commit data...
eth.c Loading commit data...
pe2.c Loading commit data...