Tag: c7c42826f9afb017ee8927cfdc9c85f2e6d7bf0c

Staging: rtl8712: 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 _adapter { struct dvobj_priv dvobjpriv; /* 0 40*/ struct mlme_priv mlmepriv; /* 40 …

Continue reading