spi: move from strlcpy with unused retval to strscpy
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 18 Aug 2022 21:01:07 +0000 (23:01 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 19 Aug 2022 12:20:02 +0000 (13:20 +0100)
commit51e99de583697cc073ef8888690675b07fe8ef3c
tree3be99bacba3027824c6a37fd81a085ff323e16b5
parent9d08f700ab78fd96cbe5922c261051743cb9c86e
spi: 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>
Link: https://lore.kernel.org/r/20220818210107.7373-1-wsa+renesas@sang-engineering.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c