Tag: 2359b5c2d950a101af883e51bdbffc1bf83325c4

staging: vt6655: replace memcpy() by ether_addr_copy() using coccinelle and pack variables

Author: Aya Mahfouz <mahfouz.saif.elyazal@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) The changes were applied using the following coccinelle rule: @@ expression e1, e2; @@ – memcpy(e1, e2, ETH_ALEN); + ether_addr_copy(e1, e2); After applying the rule, …

Continue reading