aboutsummaryrefslogtreecommitdiffstats
path: root/net/atm
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-02 22:54:54 -0500
committerDavid S. Miller <davem@davemloft.net>2015-03-03 17:01:37 -0500
commit19ffa562ec138594571896f73c014873db11fc97 (patch)
treefa296f4534a937572f3a767e000387df0f93c8ef /net/atm
parent1a73de0719fbc5452d35c3d3ddf2480fbaa7c7fd (diff)
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>
Diffstat (limited to 'net/atm')
-rw-r--r--net/atm/lec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c
index 4b98f897044a..cd3b37989057 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -2001,7 +2001,7 @@ lec_vcc_added(struct lec_priv *priv, const struct atmlec_ioc *ioc_data,
2001 if (entry == NULL) 2001 if (entry == NULL)
2002 goto out; 2002 goto out;
2003 memcpy(entry->atm_addr, ioc_data->atm_addr, ATM_ESA_LEN); 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 entry->recv_vcc = vcc; 2005 entry->recv_vcc = vcc;
2006 entry->old_recv_push = old_push; 2006 entry->old_recv_push = old_push;
2007 entry->status = ESI_UNKNOWN; 2007 entry->status = ESI_UNKNOWN;
@@ -2086,7 +2086,7 @@ lec_vcc_added(struct lec_priv *priv, const struct atmlec_ioc *ioc_data,
2086 entry->vcc = vcc; 2086 entry->vcc = vcc;
2087 entry->old_push = old_push; 2087 entry->old_push = old_push;
2088 memcpy(entry->atm_addr, ioc_data->atm_addr, ATM_ESA_LEN); 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 entry->status = ESI_UNKNOWN; 2090 entry->status = ESI_UNKNOWN;
2091 hlist_add_head(&entry->next, &priv->lec_arp_empty_ones); 2091 hlist_add_head(&entry->next, &priv->lec_arp_empty_ones);
2092 entry->timer.expires = jiffies + priv->vcc_timeout_period; 2092 entry->timer.expires = jiffies + priv->vcc_timeout_period;