diff options
| author | Thorsten Blum <[email protected]> | 2025-04-16 19:09:07 +0000 |
|---|---|---|
| committer | Dinh Nguyen <[email protected]> | 2025-04-24 22:30:01 +0000 |
| commit | aa264d9511aa5befa28cf8d9f32fce78fcf1a773 (patch) | |
| tree | 43f0f22676c6e18d008902fd6739fbd69960b9d9 /net/dsa/user.c | |
| parent | nios2: do not introduce conflicting mappings when flushing tlb entries (diff) | |
| download | kernel-aa264d9511aa5befa28cf8d9f32fce78fcf1a773.tar.gz kernel-aa264d9511aa5befa28cf8d9f32fce78fcf1a773.zip | |
nios2: Replace strcpy() with strscpy() and simplify setup_cpuinfo()
strcpy() is deprecated; use strscpy() instead.
Since the destination buffer has a fixed length, strscpy() automatically
determines its size using sizeof() when the size argument is omitted.
This makes the explicit size argument unnecessary - remove it.
Now, combine both if-else branches using strscpy() and the same buffer
into a single statement to simplify the code.
No functional changes intended.
Link: https://github.com/KSPP/linux/issues/88
Cc: [email protected]
Signed-off-by: Thorsten Blum <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Signed-off-by: Dinh Nguyen <[email protected]>
Diffstat (limited to 'net/dsa/user.c')
0 files changed, 0 insertions, 0 deletions
