linux/drivers/staging/rtlwifi
Jérémy Lefaure 2595587d7e staging: rtlwifi: use ARRAY_SIZE
Using the ARRAY_SIZE macro improves the readability of the code. Also,
it is useless 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-03 18:34:56 +02:00
..
btcoexist staging: rtlwifi: simplify logical operation 2017-08-23 16:27:07 -07:00
halmac Staging: rtlwifi: halmac: Remove unnecessary 'out of memory' messages 2017-09-22 10:53:45 +02:00
phydm staging: rtlwifi: use ARRAY_SIZE 2017-10-03 18:34:56 +02:00
rtl8822be staging: r8822be: remove some dead code 2017-08-28 10:27:29 +02:00
base.c staging: rtlwifi: remove memset before memcpy 2017-08-29 08:24:03 +02:00
base.h
cam.c
cam.h
core.c staging: rtlwifi: remove unused functions 2017-09-17 16:35:26 +02:00
core.h staging: rtlwifi: remove unused functions 2017-09-17 16:35:26 +02:00
debug.c staging: rtlwifi: Improve debugging by using debugfs 2017-08-28 10:16:57 +02:00
debug.h
efuse.c staging: rtlwifi: use kcalloc instead of multiply 2017-09-17 16:35:26 +02:00
efuse.h
Kconfig staging: rtlwifi: add MAC80211 dependency 2017-08-23 16:29:09 -07:00
Makefile staging: r8822be: Add Makefiles and Kconfig for new driver 2017-08-20 11:13:12 -07:00
pci.c
pci.h
ps.c
ps.h
pwrseqcmd.h
rc.c Staging: rtlwifi: Remove unnecessary 'out of memory' message. 2017-09-17 16:35:27 +02:00
rc.h
regd.c
regd.h
stats.c
stats.h
TODO staging: rtlwifi: Reviewers fixes 2017-08-20 11:13:12 -07:00
wifi.h