]> git.baikalelectronics.ru Git - kernel.git/commit
xen: move from strlcpy with unused retval to strscpy
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 18 Aug 2022 21:01:22 +0000 (23:01 +0200)
committerJuergen Gross <jgross@suse.com>
Thu, 25 Aug 2022 11:38:07 +0000 (13:38 +0200)
commita01f788a0769ac9304a1ed8db1606a4f7c5b2ea6
treeaf20088efb456ea9429678b096009ecf64eb3e6b
parent88732c13db647ef96b27997b6d643db9fd32192c
xen: 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>
Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@epam.com>
Link: https://lore.kernel.org/r/20220818210122.7613-1-wsa+renesas@sang-engineering.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/xen-scsiback.c
drivers/xen/xenbus/xenbus_probe_frontend.c