diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2022-08-19 00:00:29 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-09-28 18:17:39 +0300 |
commit | 6a32d3995f7bcf04598548778da54d2b6932b6a5 (patch) | |
tree | bdf35f7612b615b9555e6fbe670c0805cdc1b46b /drivers/mfd/htc-i2cpld.c | |
parent | 75db7907355ca5e2ff606e9dd3e86b6c3a455fe2 (diff) | |
download | linux-6a32d3995f7bcf04598548778da54d2b6932b6a5.tar.xz |
mfd: 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: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220818210030.7012-1-wsa+renesas@sang-engineering.com
Diffstat (limited to 'drivers/mfd/htc-i2cpld.c')
-rw-r--r-- | drivers/mfd/htc-i2cpld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/htc-i2cpld.c b/drivers/mfd/htc-i2cpld.c index 417b0355d904..9232b4ba034d 100644 --- a/drivers/mfd/htc-i2cpld.c +++ b/drivers/mfd/htc-i2cpld.c @@ -352,7 +352,7 @@ static int htcpld_register_chip_i2c( memset(&info, 0, sizeof(struct i2c_board_info)); info.addr = plat_chip_data->addr; - strlcpy(info.type, "htcpld-chip", I2C_NAME_SIZE); + strscpy(info.type, "htcpld-chip", I2C_NAME_SIZE); info.platform_data = chip; /* Add the I2C device. This calls the probe() function. */ |