]> www.infradead.org Git - users/jedix/linux-maple.git/commit
auxdisplay: Use sizeof(*pointer) instead of sizeof(type)
authorErick Archer <erick.archer@outlook.com>
Sun, 2 Jun 2024 08:49:22 +0000 (10:49 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 4 Jun 2024 07:29:36 +0000 (10:29 +0300)
commit632691ad83197227adc902793a2a3e10c04fe9b8
tree092d0888c0632d9c0789c167f05cb5e8974a80cb
parentc56a45064e989998a616aadf88023cc9611416b7
auxdisplay: Use sizeof(*pointer) instead of sizeof(type)

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@outlook.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/auxdisplay/arm-charlcd.c
drivers/auxdisplay/hd44780.c