aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2014-02-12 13:59:54 -0500
committerDavid S. Miller <davem@davemloft.net>2014-02-12 17:53:35 -0500
commite0b3ae30a2a4d4303ea394e4c2edd8f215dbb13b (patch)
tree3de3b4b3478818e4e62a9db399522409ec9cb412 /drivers/net/ethernet/sfc
parent93413f5058aa129bd6134b3176633a5ce198567b (diff)
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 <bhutchings@solarflare.com> Signed-off-by: Shradha Shah <sshah@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc')
-rw-r--r--drivers/net/ethernet/sfc/efx.c2
1 files changed, 1 insertions, 1 deletions
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)
2113{ 2113{
2114 struct efx_nic *efx = netdev_priv(net_dev); 2114 struct efx_nic *efx = netdev_priv(net_dev);
2115 struct sockaddr *addr = data; 2115 struct sockaddr *addr = data;
2116 char *new_addr = addr->sa_data; 2116 u8 *new_addr = addr->sa_data;
2117 2117
2118 if (!is_valid_ether_addr(new_addr)) { 2118 if (!is_valid_ether_addr(new_addr)) {
2119 netif_err(efx, drv, efx->net_dev, 2119 netif_err(efx, drv, efx->net_dev,