Tag: 1aba012174629ecc8088979de6d45e09cf6ab88d

Staging: vt6656: replace memcpy() by ether_addr_copy() using coccinelle and pack variable

Author: aybuke ozdemir <aybuke.147@gmail.com> This patch focuses on fixing the following warning generated by checkpatch.pl for the file rxtx.c Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2) @@ expression e1, e2; @@ – memcpy(e1, e2, ETH_ALEN); + ether_addr_copy(e1, e2); According to ether_addr_copy() description and functionality, all Ethernet addresses should align to the u16 …

Continue reading