of: move from strlcpy with unused retval to strscpy
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 18 Aug 2022 21:00:53 +0000 (23:00 +0200)
committerRob Herring <robh@kernel.org>
Mon, 22 Aug 2022 20:01:26 +0000 (15:01 -0500)
commit7a12dd077e5207d72fadaabf7d4520bd3af84082
tree07195a1805827c9338484b817cfec682346ba152
parente02b4a2fc3e20df3567bb563a2f12582f5ae17cd
of: 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>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220818210054.7157-1-wsa+renesas@sang-engineering.com
drivers/of/base.c
drivers/of/fdt.c
drivers/of/unittest.c