Re: [PATCH] auxdisplay: Use sizeof(*pointer) instead of sizeof(type)
From: Geert Uytterhoeven
Date: Mon Jun 03 2024 - 03:53:36 EST
On Sun, Jun 2, 2024 at 10:49 AM Erick Archer <erick.archer@xxxxxxxxxxx> wrote:
> It is preferred to use sizeof(*pointer) instead of sizeof(type)
> due to the type of the variable can change and one needs not
> change the former (unlike the latter). This patch has no effect
> on runtime behavior.
>
> Signed-off-by: Erick Archer <erick.archer@xxxxxxxxxxx>
Reviewed-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx>
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