ethernet: manually convert memcpy(dev_addr,..., sizeof(addr))
A handful of drivers use sizeof(addr) for the size of the address, after manually confirming the size is indeed 6 convert them to eth_hw_addr_set(). Acked-by: NFlorian Fainelli <f.fainelli@gmail.com> Acked-by: NPetko Manolov <petkan@nucleusys.com> Acked-by: NNicolas Ferre <nicolas.ferre@microchip.com> Signed-off-by: NJakub Kicinski <kuba@kernel.org>
Showing
想要评论请 注册 或 登录