Skip to content

Commit 9283477

Browse files
abajkkuba-moo
authored andcommitted
net: ethernet: lantiq_etop: remove redundant device name setup
The same name is set when allocating the netdevice structure in the alloc_etherdev_mq()->alloc_etherrdev_mqs() function. Therefore, there is no need to manually set it. This fixes CheckPatch warnings: WARNING: Prefer strscpy over strcpy - see: KSPP#88 strcpy(dev->name, "eth%d"); Signed-off-by: Aleksander Jan Bajkowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c49379d commit 9283477

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/lantiq_etop.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,6 @@ ltq_etop_probe(struct platform_device *pdev)
675675
err = -ENOMEM;
676676
goto err_out;
677677
}
678-
strcpy(dev->name, "eth%d");
679678
dev->netdev_ops = &ltq_eth_netdev_ops;
680679
dev->ethtool_ops = &ltq_etop_ethtool_ops;
681680
priv = netdev_priv(dev);

0 commit comments

Comments
 (0)