linux_dsm_epyc7002/drivers/net/wireless/realtek
Jérémy Lefaure 53ac793593 wireless: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also,
it is not always useful to use a variable to store this constant
calculated at compile time.

Found with Coccinelle with the following semantic patch:
@r depends on (org || report)@
type T;
T[] E;
position p;
@@
(
 (sizeof(E)@p /sizeof(*E))
|
 (sizeof(E)@p /sizeof(E[...]))
|
 (sizeof(E)@p /sizeof(T))
)

Signed-off-by: Jérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2017-12-08 15:19:46 +02:00
..
rtl8xxxu rtl8xxxu: Don't printk raw binary if serial number is not burned in. 2017-09-25 11:24:05 +03:00
rtl818x rtlwifi: rtl818x: remove redundant check for cck_power > 15 2017-12-07 15:16:07 +02:00
rtlwifi wireless: use ARRAY_SIZE 2017-12-08 15:19:46 +02:00
Kconfig realtek: create separate Kconfig file 2015-11-18 14:28:31 +02:00
Makefile