diff options
author | Joe Perches <joe@perches.com> | 2015-03-03 04:54:48 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-03 23:01:36 +0100 |
commit | 519983b129477cb8e0bbea334c72ecd4486b2d21 (patch) | |
tree | 33e54723f7199bdde6fbfcb9e641c45b6063996b /drivers/net/usb/qmi_wwan.c | |
parent | ethernet: Use eth_<foo>_addr instead of memset (diff) | |
download | linux-519983b129477cb8e0bbea334c72ecd4486b2d21.tar.xz linux-519983b129477cb8e0bbea334c72ecd4486b2d21.zip |
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>
Diffstat (limited to 'drivers/net/usb/qmi_wwan.c')
-rw-r--r-- | drivers/net/usb/qmi_wwan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index 602dc6668c3a..f603f362504b 100644 --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c @@ -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; |