]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
s390: Remove optional third argument of strscpy() if possible
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 11 Apr 2025 13:29:12 +0000 (15:29 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Thu, 17 Apr 2025 13:16:10 +0000 (15:16 +0200)
commite7ae507c024cb78b39b6e277584b1f7e59a99b81
tree1651b0c4c9cac797d33b17edfd080e08617f7442
parent2eba6f9e6b87bfe32d944409d14cbb134b17a69a
s390: Remove optional third argument of strscpy() if possible

The third argument of strscpy() is optional and can be left away iff
the destination is an array and the maximum size of the copy is the
size of destination.
Remove the third argument for those cases where this is possible.

Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/cert_store.c
arch/s390/kernel/debug.c
arch/s390/kernel/ipl.c
drivers/s390/char/diag_ftp.c