mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
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>
This commit is contained in:
parent
fb8ece514d
commit
ceca777dab
@ -2986,7 +2986,7 @@ static struct ehea_port *ehea_setup_single_port(struct ehea_adapter *adapter,
|
||||
SET_NETDEV_DEV(dev, port_dev);
|
||||
|
||||
/* initialize net_device structure */
|
||||
eth_hw_addr_set(dev, &port->mac_addr);
|
||||
eth_hw_addr_set(dev, (u8 *)&port->mac_addr);
|
||||
|
||||
dev->netdev_ops = &ehea_netdev_ops;
|
||||
ehea_set_ethtool_ops(dev);
|
||||
|
Loading…
x
Reference in New Issue
Block a user