]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfrm: Remove unnecessary strscpy_pad() size arguments
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 20 Mar 2025 12:44:51 +0000 (13:44 +0100)
committerSteffen Klassert <steffen.klassert@secunet.com>
Fri, 11 Apr 2025 08:11:58 +0000 (10:11 +0200)
commit20eb35da409fa60fa03ea828cd3d1d9c8a51e103
tree1db836a649585471e02eaf7547efa48a3ee5c24a
parent0c49baf099ba2147a6ff3bbdc3197c6ddbee5469
xfrm: Remove unnecessary strscpy_pad() size arguments

If the destination buffer has a fixed length, strscpy_pad()
automatically determines its size using sizeof() when the argument is
omitted. This makes the explicit sizeof() calls unnecessary - remove
them.

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_user.c