diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2022-08-22 17:14:58 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-08-22 17:16:24 -0700 |
commit | a9da7251ac8bcc2f2358513868f1903ac2809b3d (patch) | |
tree | 402d4db6b283ea95f7297f681805608c3ce4bac4 /include | |
parent | a9f08ad7adb3d2f90e11efbb40a1246ef95b0c04 (diff) | |
download | linux-stable-a9da7251ac8bcc2f2358513868f1903ac2809b3d.tar.gz linux-stable-a9da7251ac8bcc2f2358513868f1903ac2809b3d.tar.bz2 linux-stable-a9da7251ac8bcc2f2358513868f1903ac2809b3d.zip |
Input: gameport - 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/20220818210156.8143-1-wsa+renesas@sang-engineering.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/gameport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/gameport.h b/include/linux/gameport.h index 69081d899492..8c2f00018e89 100644 --- a/include/linux/gameport.h +++ b/include/linux/gameport.h @@ -110,7 +110,7 @@ static inline void gameport_free_port(struct gameport *gameport) static inline void gameport_set_name(struct gameport *gameport, const char *name) { - strlcpy(gameport->name, name, sizeof(gameport->name)); + strscpy(gameport->name, name, sizeof(gameport->name)); } /* |