net: move from strlcpy with unused retval to strscpy
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 30 Aug 2022 20:14:52 +0000 (22:14 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 Aug 2022 21:11:07 +0000 (14:11 -0700)
commitfb3ceec187e8bca474340e361a18163a2e79c0a2
tree1c654fd696ed34dfa8aeca4fff95871c7c28ee17
parent8af1a9afe10005088f25f6c4c5b6e3eeaade6a93
net: move from strlcpy with unused retval to strscpy

Follow the advice of the below link and prefer 'strscpy' in this
subsystem. Conversion is 1:1 because the return value is not used.
Generated by a coccinelle script.

Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> # for CAN
Link: https://lore.kernel.org/r/20220830201457.7984-1-wsa+renesas@sang-engineering.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
40 files changed:
drivers/net/Space.c
drivers/net/bonding/bond_main.c
drivers/net/can/sja1000/peak_pcmcia.c
drivers/net/can/usb/peak_usb/pcan_usb_core.c
drivers/net/dsa/b53/b53_common.c
drivers/net/dsa/bcm_sf2_cfp.c
drivers/net/dsa/hirschmann/hellcreek.c
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dummy.c
drivers/net/fjes/fjes_ethtool.c
drivers/net/geneve.c
drivers/net/hamradio/hdlcdrv.c
drivers/net/hyperv/netvsc_drv.c
drivers/net/ipvlan/ipvlan_main.c
drivers/net/macvlan.c
drivers/net/net_failover.c
drivers/net/netconsole.c
drivers/net/ntb_netdev.c
drivers/net/phy/adin.c
drivers/net/phy/bcm-phy-lib.c
drivers/net/phy/marvell.c
drivers/net/phy/micrel.c
drivers/net/phy/mscc/mscc_main.c
drivers/net/phy/phy_device.c
drivers/net/rionet.c
drivers/net/team/team.c
drivers/net/tun.c
drivers/net/usb/aqc111.c
drivers/net/usb/asix_common.c
drivers/net/usb/catc.c
drivers/net/usb/pegasus.c
drivers/net/usb/r8152.c
drivers/net/usb/rtl8150.c
drivers/net/usb/sierra_net.c
drivers/net/usb/usbnet.c
drivers/net/veth.c
drivers/net/virtio_net.c
drivers/net/vmxnet3/vmxnet3_ethtool.c
drivers/net/vrf.c
drivers/net/vxlan/vxlan_core.c