Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

atm: Use eth_<foo>_addr instead of memset

Use the built-in function instead of memset.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Joe Perches and committed by
David S. Miller
19ffa562 1a73de07

+2 -2
+2 -2
net/atm/lec.c
··· 2001 2001 if (entry == NULL) 2002 2002 goto out; 2003 2003 memcpy(entry->atm_addr, ioc_data->atm_addr, ATM_ESA_LEN); 2004 - memset(entry->mac_addr, 0, ETH_ALEN); 2004 + eth_zero_addr(entry->mac_addr); 2005 2005 entry->recv_vcc = vcc; 2006 2006 entry->old_recv_push = old_push; 2007 2007 entry->status = ESI_UNKNOWN; ··· 2086 2086 entry->vcc = vcc; 2087 2087 entry->old_push = old_push; 2088 2088 memcpy(entry->atm_addr, ioc_data->atm_addr, ATM_ESA_LEN); 2089 - memset(entry->mac_addr, 0, ETH_ALEN); 2089 + eth_zero_addr(entry->mac_addr); 2090 2090 entry->status = ESI_UNKNOWN; 2091 2091 hlist_add_head(&entry->next, &priv->lec_arp_empty_ones); 2092 2092 entry->timer.expires = jiffies + priv->vcc_timeout_period;