Re: [PATCH 3/3] sh: dma: drop redundant size argument from strscpy in request_dma
From: Geert Uytterhoeven
Date: Tue Apr 21 2026 - 03:07:14 EST
On Mon, 20 Apr 2026 at 17:28, Thorsten Blum <thorsten.blum@xxxxxxxxx> wrote:
> The strscpy() size argument is optional if the destination buffer has a
> fixed length. Use the two-argument version of strscpy() to copy 'dev_id'
> to simplify the code.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
Reviewed-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds