Re: [PATCH] auxdisplay: Use sizeof(*pointer) instead of sizeof(type)

From: Andy Shevchenko
Date: Mon Jun 03 2024 - 15:50:26 EST


On Mon, Jun 03, 2024 at 09:52:57AM +0200, Geert Uytterhoeven wrote:
> 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>

Pushed to my review and testing queue, thanks!

--
With Best Regards,
Andy Shevchenko