linux/drivers/staging/rtl8723bs
Jérémy Lefaure 60db8d10ee staging: rtl8723bs: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-03 18:34:57 +02:00
..
core staging: rtl8723bs: use ARRAY_SIZE 2017-10-03 18:34:57 +02:00
hal staging: rtl8723bs: use ARRAY_SIZE 2017-10-03 18:34:57 +02:00
include staging: rtl8723bs: convert private allocation functions to return void * 2017-09-17 16:35:26 +02:00
os_dep staging: rtl8723bs: use ARRAY_SIZE 2017-10-03 18:34:57 +02:00
Kconfig
Makefile
TODO