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: Dilek Uzulmez <dilekuzulmez@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dilek Uzulmez 2014-10-07 02:50:28 +03:00 коммит произвёл Greg Kroah-Hartman
Родитель a7a4f87e3c
Коммит f999ac00c7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1788,7 +1788,7 @@ static int slic_mcast_add_list(struct adapter *adapter, char *address)
if (mcaddr == NULL) if (mcaddr == NULL)
return 1; return 1;
memcpy(mcaddr->address, address, ETH_ALEN); ether_addr_copy(mcaddr->address, address);
mcaddr->next = adapter->mcastaddrs; mcaddr->next = adapter->mcastaddrs;
adapter->mcastaddrs = mcaddr; adapter->mcastaddrs = mcaddr;