diff options
author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2021-01-30 10:18:28 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-31 13:39:16 +0100 |
commit | 5aadd5c692e6427989656f16ff223cb301cfb8d7 (patch) | |
tree | 8ebf6b78134984171ed639204f0999b9ef86a7ec /arch/arm/mach-lpc18xx/board-dt.c | |
parent | 6ee9e6ee5c486f68e424185e133984d0a6ae662c (diff) |
staging: qlge/qlge_ethtool.c: Switch from strlcpy to strscpy
strlcpy is marked as deprecated in Documentation/process/deprecated.rst,
and there is no functional difference when the caller expects truncation
(when not checking the return value). strscpy is relatively better as it
also avoids scanning the whole source string.
This silences the related checkpatch warnings from:
5dbdb2d87c29 ("checkpatch: prefer strscpy to strlcpy")
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20210130044828.121248-1-memxor@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/mach-lpc18xx/board-dt.c')
0 files changed, 0 insertions, 0 deletions