diff options
author | Joe Perches <joe@perches.com> | 2015-03-03 06:54:48 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-04 01:01:36 +0300 |
commit | 519983b129477cb8e0bbea334c72ecd4486b2d21 (patch) | |
tree | 33e54723f7199bdde6fbfcb9e641c45b6063996b /drivers/net/usb/lg-vl600.c | |
parent | c7bf716940c6a8ed39b444bfb0b97c2939ac312b (diff) | |
download | linux-519983b129477cb8e0bbea334c72ecd4486b2d21.tar.xz |
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/lg-vl600.c')
-rw-r--r-- | drivers/net/usb/lg-vl600.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/lg-vl600.c b/drivers/net/usb/lg-vl600.c index 8f37efd2d2fb..5714107533bb 100644 --- a/drivers/net/usb/lg-vl600.c +++ b/drivers/net/usb/lg-vl600.c @@ -201,7 +201,7 @@ static int vl600_rx_fixup(struct usbnet *dev, struct sk_buff *skb) &buf->data[sizeof(*ethhdr) + 0x12], ETH_ALEN); } else { - memset(ethhdr->h_source, 0, ETH_ALEN); + eth_zero_addr(ethhdr->h_source); memcpy(ethhdr->h_dest, dev->net->dev_addr, ETH_ALEN); /* Inbound IPv6 packets have an IPv4 ethertype (0x800) |