]> www.infradead.org Git - linux.git/commit
Input: gameport - use sizeof(*pointer) instead of sizeof(type)
authorErick Archer <erick.archer@outlook.com>
Fri, 7 Jun 2024 17:17:55 +0000 (19:17 +0200)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 7 Jun 2024 18:59:41 +0000 (11:59 -0700)
commit5bbcece640ef7570ca090a5b35af035fe4ecc7b1
tree6ca5e41de69b269f37966856b35ae28fac382d59
parent06b449d7f7c361dc15ea040966a46ed2c6508f3b
Input: gameport - 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>
Link: https://lore.kernel.org/r/PAXPR02MB72483F512F863C74A4AECA2B8BFB2@PAXPR02MB7248.eurprd02.prod.outlook.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/gameport/emu10k1-gp.c
drivers/input/gameport/fm801-gp.c
drivers/input/gameport/gameport.c
drivers/input/gameport/ns558.c