Re: [PATCH] module: Remove unnecessary size argument when calling strscpy()

From: Petr Pavlu
Date: Mon Mar 10 2025 - 07:08:41 EST


On 3/8/25 20:46, Thorsten Blum wrote:
> The size parameter is optional and strscpy() automatically determines
> the length of the destination buffer using sizeof() if the argument is
> omitted. This makes the explicit sizeof() unnecessary. Remove it to
> shorten and simplify the code.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>

Looks good to me. I've queued it on modules-next.

--
Thanks,
Petr