]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hamradio: Remove unnecessary strscpy_pad() size arguments
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 7 Apr 2025 08:26:07 +0000 (10:26 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 8 Apr 2025 10:38:47 +0000 (12:38 +0200)
commit48afd55505247df3b8e00a15a0b25b58618bc3a0
treeface0e002243a7b6f9e7b1ad3d4940266b1eac64
parent61f96e684edd28ca40555ec49ea1555df31ba619
hamradio: 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>
Link: https://patch.msgid.link/20250407082607.741919-2-thorsten.blum@linux.dev
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/hamradio/baycom_epp.c