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>
This commit is contained in:
parent
fa8cd98c06
commit
7a6b022d79
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user