ethernet: ehea: add missing cast
authorJakub Kicinski <kuba@kernel.org>
Tue, 5 Oct 2021 01:11:14 +0000 (18:11 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Oct 2021 10:35:56 +0000 (11:35 +0100)
commitceca777dabc6ea25e13fae6498c27e187a69be0e
tree38c3cb7d3b5514544272e3b5a8a7bda3bcb07138
parentfb8ece514d388a2300346f23ffd8bcf8cf3a1d50
ethernet: ehea: add missing cast

We need to cast the pointer, unlike memcpy() eth_hw_addr_set()
does not take void *. The driver already casts &port->mac_addr
to u8 * in other places.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: a96d317fb1a3 ("ethernet: use eth_hw_addr_set()")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ehea/ehea_main.c