Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afc130dd authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

ethernet: Use eth_<foo>_addr instead of memset



Use the built-in function instead of memset.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 211b8534
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -104,7 +104,7 @@ int eth_header(struct sk_buff *skb, struct net_device *dev,
	 */

	if (dev->flags & (IFF_LOOPBACK | IFF_NOARP)) {
		memset(eth->h_dest, 0, ETH_ALEN);
		eth_zero_addr(eth->h_dest);
		return ETH_HLEN;
	}

@@ -357,7 +357,7 @@ void ether_setup(struct net_device *dev)
	dev->flags		= IFF_BROADCAST|IFF_MULTICAST;
	dev->priv_flags		|= IFF_TX_SKB_SHARING;

	memset(dev->broadcast, 0xFF, ETH_ALEN);
	eth_broadcast_addr(dev->broadcast);

}
EXPORT_SYMBOL(ether_setup);