Re: [PATCH] net: move from strlcpy with unused retval to strscpy

From: Marc Kleine-Budde
Date: Fri Aug 19 2022 - 02:53:38 EST


On 18.08.2022 23:00:34, Wolfram Sang wrote:
> 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@xxxxxxxxxxxxxx/
> Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
> ---
> drivers/net/can/sja1000/peak_pcmcia.c | 2 +-
> drivers/net/can/usb/peak_usb/pcan_usb_core.c | 2 +-

Acked-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> # for CAN

regards,
Marc

--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |

Attachment: signature.asc
Description: PGP signature