summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ti
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-03 06:54:47 +0300
committerDavid S. Miller <davem@davemloft.net>2015-03-04 01:01:36 +0300
commitc7bf716940c6a8ed39b444bfb0b97c2939ac312b (patch)
tree4f21527a5cfb43f724b5dd2ea65e530d9ec64ea3 /drivers/net/ethernet/ti
parente8ab38cfcb6eac7f4e7e3b8e787a9d4bea54c2cb (diff)
downloadlinux-c7bf716940c6a8ed39b444bfb0b97c2939ac312b.tar.xz
ethernet: Use eth_<foo>_addr instead of memset
Use the built-in function instead of memset. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
-rw-r--r--drivers/net/ethernet/ti/netcp_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/netcp_core.c b/drivers/net/ethernet/ti/netcp_core.c
index a31a8c3c8e7c..9f14d8b515c7 100644
--- a/drivers/net/ethernet/ti/netcp_core.c
+++ b/drivers/net/ethernet/ti/netcp_core.c
@@ -1320,7 +1320,7 @@ static struct netcp_addr *netcp_addr_add(struct netcp_intf *netcp,
if (addr)
ether_addr_copy(naddr->addr, addr);
else
- memset(naddr->addr, 0, ETH_ALEN);
+ eth_zero_addr(naddr->addr);
list_add_tail(&naddr->node, &netcp->addr_list);
return naddr;