ethernet: s2io: Use ether_addr_to_u64() to convert ethernet address
authorLi Zetao <lizetao1@huawei.com>
Tue, 8 Aug 2023 11:38:49 +0000 (19:38 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 9 Aug 2023 22:26:49 +0000 (15:26 -0700)
commitb77049f04ed16cb0ab89b1cca689cd16a3071fd2
treefccb4c01aa1ab253f67881368af33e3a39d84eff
parent052059b663c957aea5a90f206ece4849f88f34bf
ethernet: s2io: Use ether_addr_to_u64() to convert ethernet address

Use ether_addr_to_u64() to convert an Ethernet address into a u64 value,
instead of directly calculating, as this is exactly what
this function does.

Signed-off-by: Li Zetao <lizetao1@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230808113849.4033657-1-lizetao1@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/neterion/s2io.c