]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf66f1a3e2572a8b1e570299c60da4f370d846aa7
tree2dafb551583bb64b31c5ae175bacc8a32b2f8029
parent9b417cf29b366a74a6a58b2f984cc2d3c9765365
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