[PATCH] net: move from strlcpy with unused retval to strscpy
Shay Agroskin
shayagr at amazon.com
Mon Aug 22 17:00:23 AEST 2022
Wolfram Sang <wsa+renesas at sang-engineering.com> writes:
> CAUTION: This email originated from outside of the
> organization. Do not click links or open attachments unless you
> can confirm the sender and know the content is safe.
>
>
>
> 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 at sang-engineering.com>
> ---
...
> drivers/net/ethernet/amazon/ena/ena_ethtool.c | 4 ++--
> drivers/net/ethernet/amazon/ena/ena_netdev.c | 2 +-
Reviewed-by: Shay Agroskin <shayagr at amazon.com>
More information about the Linuxppc-dev
mailing list