Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f999ac00 authored by Dilek Uzulmez's avatar Dilek Uzulmez Committed by Greg Kroah-Hartman
Browse files

staging: slicoss: Fix warning of prefer ether_addr_copy().



This patch fixes the following checkpatch.pl warnings:
WARNING: "Prefer ether_addr_copy() over memcpy() if the Ethernet
addresses are __aligned(2)" in file slicoss.c
Pahole shows that the addresses are aligned.

Signed-off-by: default avatarDilek Uzulmez <dilekuzulmez@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a7a4f87e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1788,7 +1788,7 @@ static int slic_mcast_add_list(struct adapter *adapter, char *address)
	if (mcaddr == NULL)
		return 1;

	memcpy(mcaddr->address, address, ETH_ALEN);
	ether_addr_copy(mcaddr->address, address);

	mcaddr->next = adapter->mcastaddrs;
	adapter->mcastaddrs = mcaddr;