OSDN Git Service

IB: move from strlcpy with unused retval to strscpy
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 18 Aug 2022 21:00:18 +0000 (23:00 +0200)
committerLeon Romanovsky <leonro@nvidia.com>
Sun, 21 Aug 2022 11:18:02 +0000 (14:18 +0300)
commit2c34bb6dea481fa11048e26ffd1ce7400dbc2105
tree90d58be8448834749a135bb99a9cb743b2898a10
parentdc13fbf79ec8f983fc398cd200ed12973f390957
IB: 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/
Link: https://lore.kernel.org/r/20220818210018.6841-1-wsa+renesas@sang-engineering.com
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
12 files changed:
drivers/infiniband/core/cma_configfs.c
drivers/infiniband/core/device.c
drivers/infiniband/hw/bnxt_re/main.c
drivers/infiniband/hw/hfi1/file_ops.c
drivers/infiniband/hw/hfi1/verbs.c
drivers/infiniband/hw/mthca/mthca_cmd.c
drivers/infiniband/hw/ocrdma/ocrdma_hw.c
drivers/infiniband/hw/qib/qib_iba7322.c
drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
drivers/infiniband/ulp/opa_vnic/opa_vnic_ethtool.c
drivers/infiniband/ulp/srpt/ib_srpt.c
include/rdma/rdma_vt.h