diff options
author | Stefan Wahren <stefan.wahren@i2se.com> | 2018-09-04 19:29:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-06 07:20:45 +0200 |
commit | 7a6b022d7964a8f9fa09885a62dc5ba82127dccc (patch) | |
tree | c2249485df63fade42e76517b24b14b0bac2dd2f /drivers/net/usb/lan78xx.c | |
parent | net: lan78xx: Bail out if lan78xx_get_endpoints fails (diff) | |
download | linux-7a6b022d7964a8f9fa09885a62dc5ba82127dccc.tar.xz linux-7a6b022d7964a8f9fa09885a62dc5ba82127dccc.zip |
net: lan78xx: Drop unnecessary strcpy in lan78xx_probe
There is no need for this strcpy because alloc_etherdev() already
does this job.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Raghuram Chary Jallipalli <raghuramchary.jallipalli@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/lan78xx.c')
-rw-r--r-- | drivers/net/usb/lan78xx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 3f70b9426d8d..3d505c25c6d6 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -3766,7 +3766,6 @@ static int lan78xx_probe(struct usb_interface *intf, ret = lan78xx_bind(dev, intf); if (ret < 0) goto out2; - strcpy(netdev->name, "eth%d"); if (netdev->mtu > (dev->hard_mtu - netdev->hard_header_len)) netdev->mtu = dev->hard_mtu - netdev->hard_header_len; |