mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-03 08:14:12 +00:00
Input: 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. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Link: https://lore.kernel.org/r/20220818210022.6865-1-wsa+renesas@sang-engineering.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
committed by
Dmitry Torokhov
parent
24c06e000e
commit
a9f08ad7ad
@@ -334,9 +334,9 @@ static int hv_kbd_probe(struct hv_device *hv_dev,
|
||||
hv_serio->dev.parent = &hv_dev->device;
|
||||
hv_serio->id.type = SERIO_8042_XL;
|
||||
hv_serio->port_data = kbd_dev;
|
||||
strlcpy(hv_serio->name, dev_name(&hv_dev->device),
|
||||
strscpy(hv_serio->name, dev_name(&hv_dev->device),
|
||||
sizeof(hv_serio->name));
|
||||
strlcpy(hv_serio->phys, dev_name(&hv_dev->device),
|
||||
strscpy(hv_serio->phys, dev_name(&hv_dev->device),
|
||||
sizeof(hv_serio->phys));
|
||||
|
||||
hv_serio->start = hv_kbd_start;
|
||||
|
||||
Reference in New Issue
Block a user