Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

etherdevice: remove unused eth_addr_greater

eth_addr_greater() was introduced for the mv88e6xxx driver, but is not
used anymore. There is no other user, thus remove this function.

Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Vivien Didelot and committed by
David S. Miller
0c68f666 9dbfb4e1

-15
-15
include/linux/etherdevice.h
··· 447 447 } 448 448 449 449 /** 450 - * ether_addr_greater - Compare two Ethernet addresses 451 - * @addr1: Pointer to a six-byte array containing the Ethernet address 452 - * @addr2: Pointer other six-byte array containing the Ethernet address 453 - * 454 - * Compare two Ethernet addresses, returns true addr1 is greater than addr2 455 - */ 456 - static inline bool ether_addr_greater(const u8 *addr1, const u8 *addr2) 457 - { 458 - u64 u1 = ether_addr_to_u64(addr1); 459 - u64 u2 = ether_addr_to_u64(addr2); 460 - 461 - return u1 > u2; 462 - } 463 - 464 - /** 465 450 * is_etherdev_addr - Tell if given Ethernet address belongs to the device. 466 451 * @dev: Pointer to a device structure 467 452 * @addr: Pointer to a six-byte array containing the Ethernet address