Skip to content

Commit

Permalink
appletalk: Use eth_<foo>_addr instead of memset
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and David S. Miller committed Mar 3, 2015
1 parent 423049a commit 1a73de0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/appletalk/aarp.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static void __aarp_send_query(struct aarp_entry *a)
eah->pa_src_net = sat->s_net;
eah->pa_src_node = sat->s_node;

memset(eah->hw_dst, '\0', ETH_ALEN);
eth_zero_addr(eah->hw_dst);

eah->pa_dst_zero = 0;
eah->pa_dst_net = a->target_addr.s_net;
Expand Down Expand Up @@ -189,7 +189,7 @@ static void aarp_send_reply(struct net_device *dev, struct atalk_addr *us,
eah->pa_src_node = us->s_node;

if (!sha)
memset(eah->hw_dst, '\0', ETH_ALEN);
eth_zero_addr(eah->hw_dst);
else
ether_addr_copy(eah->hw_dst, sha);

Expand Down Expand Up @@ -239,7 +239,7 @@ static void aarp_send_probe(struct net_device *dev, struct atalk_addr *us)
eah->pa_src_net = us->s_net;
eah->pa_src_node = us->s_node;

memset(eah->hw_dst, '\0', ETH_ALEN);
eth_zero_addr(eah->hw_dst);

eah->pa_dst_zero = 0;
eah->pa_dst_net = us->s_net;
Expand Down

0 comments on commit 1a73de0

Please sign in to comment.