diff options
author | Joe Perches <joe@perches.com> | 2015-03-02 22:54:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-03 17:01:37 -0500 |
commit | 1a73de0719fbc5452d35c3d3ddf2480fbaa7c7fd (patch) | |
tree | 31cf161ade843a33af39cf0391011110ffc7a95b /net/appletalk/aarp.c | |
parent | 423049ab1e93cfcffff7de6ff40e68edede8fdf5 (diff) |
appletalk: 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/appletalk/aarp.c')
-rw-r--r-- | net/appletalk/aarp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/appletalk/aarp.c b/net/appletalk/aarp.c index d1c55d8dd0a2..8ad3ec2610b6 100644 --- a/net/appletalk/aarp.c +++ b/net/appletalk/aarp.c | |||
@@ -141,7 +141,7 @@ static void __aarp_send_query(struct aarp_entry *a) | |||
141 | eah->pa_src_net = sat->s_net; | 141 | eah->pa_src_net = sat->s_net; |
142 | eah->pa_src_node = sat->s_node; | 142 | eah->pa_src_node = sat->s_node; |
143 | 143 | ||
144 | memset(eah->hw_dst, '\0', ETH_ALEN); | 144 | eth_zero_addr(eah->hw_dst); |
145 | 145 | ||
146 | eah->pa_dst_zero = 0; | 146 | eah->pa_dst_zero = 0; |
147 | eah->pa_dst_net = a->target_addr.s_net; | 147 | eah->pa_dst_net = a->target_addr.s_net; |
@@ -189,7 +189,7 @@ static void aarp_send_reply(struct net_device *dev, struct atalk_addr *us, | |||
189 | eah->pa_src_node = us->s_node; | 189 | eah->pa_src_node = us->s_node; |
190 | 190 | ||
191 | if (!sha) | 191 | if (!sha) |
192 | memset(eah->hw_dst, '\0', ETH_ALEN); | 192 | eth_zero_addr(eah->hw_dst); |
193 | else | 193 | else |
194 | ether_addr_copy(eah->hw_dst, sha); | 194 | ether_addr_copy(eah->hw_dst, sha); |
195 | 195 | ||
@@ -239,7 +239,7 @@ static void aarp_send_probe(struct net_device *dev, struct atalk_addr *us) | |||
239 | eah->pa_src_net = us->s_net; | 239 | eah->pa_src_net = us->s_net; |
240 | eah->pa_src_node = us->s_node; | 240 | eah->pa_src_node = us->s_node; |
241 | 241 | ||
242 | memset(eah->hw_dst, '\0', ETH_ALEN); | 242 | eth_zero_addr(eah->hw_dst); |
243 | 243 | ||
244 | eah->pa_dst_zero = 0; | 244 | eah->pa_dst_zero = 0; |
245 | eah->pa_dst_net = us->s_net; | 245 | eah->pa_dst_net = us->s_net; |