Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thorsten Blum and committed by
Paolo Abeni
48afd555 61f96e68

+2 -3
+2 -3
drivers/net/hamradio/baycom_epp.c
··· 1074 1074 return 0; 1075 1075 1076 1076 case HDLCDRVCTL_DRIVERNAME: 1077 - strscpy_pad(hi.data.drivername, "baycom_epp", sizeof(hi.data.drivername)); 1077 + strscpy_pad(hi.data.drivername, "baycom_epp"); 1078 1078 break; 1079 1079 1080 1080 case HDLCDRVCTL_GETMODE: ··· 1091 1091 return baycom_setmode(bc, hi.data.modename); 1092 1092 1093 1093 case HDLCDRVCTL_MODELIST: 1094 - strscpy_pad(hi.data.modename, "intclk,extclk,intmodem,extmodem,divider=x", 1095 - sizeof(hi.data.modename)); 1094 + strscpy_pad(hi.data.modename, "intclk,extclk,intmodem,extmodem,divider=x"); 1096 1095 break; 1097 1096 1098 1097 case HDLCDRVCTL_MODEMPARMASK: