net: usb: 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>
This commit is contained in:

committed by
David S. Miller

parent
c7bf716940
commit
519983b129
@@ -108,7 +108,7 @@ static int qmi_wwan_rx_fixup(struct usbnet *dev, struct sk_buff *skb)
|
||||
skb_push(skb, ETH_HLEN);
|
||||
skb_reset_mac_header(skb);
|
||||
eth_hdr(skb)->h_proto = proto;
|
||||
memset(eth_hdr(skb)->h_source, 0, ETH_ALEN);
|
||||
eth_zero_addr(eth_hdr(skb)->h_source);
|
||||
fix_dest:
|
||||
memcpy(eth_hdr(skb)->h_dest, dev->net->dev_addr, ETH_ALEN);
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user