nvme: move from strlcpy with unused retval to strscpy
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 18 Aug 2022 21:00:52 +0000 (23:00 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 19 Sep 2022 09:33:53 +0000 (11:33 +0200)
commita8817cc09d8e6140c8561a81dded7b3f68e15a1b
tree2dafb551583bb64b31c5ae175bacc8a32b2f8029
parent1abc696174f1ba27c9563c722029373e1a692933
nvme: 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: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c
drivers/nvme/host/fabrics.c
drivers/nvme/target/admin-cmd.c
drivers/nvme/target/discovery.c