Tag: 1f3aefb5dfcaf28c0a0b5c270ca120818da88f58

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

Author: Melike Yurtoglu <aysemelikeyurtoglu@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); struct net_device { char name[16]; /* 0 16*/ struct hlist_node name_hlist; /* 16 16*/ …

Continue reading