aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorAleksander Jan Bajkowski <olek2@wp.pl>2024-07-13 19:09:20 +0200
committerJakub Kicinski <kuba@kernel.org>2024-07-15 07:02:22 -0700
commit9283477e28913c1e7625c0a8d6959745e2431533 (patch)
treee59bc9a9c61dd59414fac4d89793a66fd3b41a61 /scripts/generate_rust_analyzer.py
parentMerge branch 'net-dsa-vsc73xx-implement-vlan-operations' (diff)
downloadlinux-rng-9283477e28913c1e7625c0a8d6959745e2431533.tar.xz
linux-rng-9283477e28913c1e7625c0a8d6959745e2431533.zip
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: https://github.com/KSPP/linux/issues/88 strcpy(dev->name, "eth%d"); Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl> Link: https://patch.msgid.link/20240713170920.863171-1-olek2@wp.pl Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions