]> www.infradead.org Git - users/dwmw2/linux.git/commit
wifi: at76c50x: use sizeof(*pointer) instead of sizeof(type)
authorErick Archer <erick.archer@outlook.com>
Sun, 2 Jun 2024 16:13:09 +0000 (18:13 +0200)
committerKalle Valo <kvalo@kernel.org>
Wed, 12 Jun 2024 12:00:33 +0000 (15:00 +0300)
commitaea9165ccfd1577be801fd75515fc9d4a9595b90
tree7ebc3895980fa6a72fe23af8dd84d491f01ddcfb
parent54d96912caf6bb1e6682cfdb225a67cb80545557
wifi: at76c50x: 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.

At the same time remove some redundant NULL initializations.

Signed-off-by: Erick Archer <erick.archer@outlook.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/AS8PR02MB7237C784C14DBC943CB719F88BFE2@AS8PR02MB7237.eurprd02.prod.outlook.com
drivers/net/wireless/atmel/at76c50x-usb.c