From: Ben Hutchings Date: Wed, 12 Feb 2014 18:59:54 +0000 (+0000) Subject: sfc: Use canonical pointer type for MAC address in efx_set_mac_address() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e0b3ae30a2a4d4303ea394e4c2edd8f215dbb13b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sfc: Use canonical pointer type for MAC address in efx_set_mac_address() Functions such as is_valid_ether_addr() expect u8 *, so use that instead of char *. Signed-off-by: Ben Hutchings Signed-off-by: Shradha Shah Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index 84a1e11ddd79..91acdc28b247 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c @@ -2113,7 +2113,7 @@ static int efx_set_mac_address(struct net_device *net_dev, void *data) { struct efx_nic *efx = netdev_priv(net_dev); struct sockaddr *addr = data; - char *new_addr = addr->sa_data; + u8 *new_addr = addr->sa_data; if (!is_valid_ether_addr(new_addr)) { netif_err(efx, drv, efx->net_dev,