[PATCH -next] net/ps3_gelic_net: Use ether_addr_to_u64() to convert ethernet address

Geoff Levand geoff at infradead.org
Wed Aug 9 03:32:09 AEST 2023


Hi,

On 8/8/23 04:40, Li Zetao wrote:
> 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 at huawei.com>
> ---
>  drivers/net/ethernet/toshiba/ps3_gelic_net.c | 8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)

I tested this on PS3 and it seems to be working OK.
Thanks for your contribution.

Tested-by: Geoff Levand <geoff at infradead.org>



More information about the Linuxppc-dev mailing list