Staging: rtl8188eu: core: Use ARRAY_SIZE macro
authorShraddha Barke <shraddha.6596@gmail.com>
Thu, 8 Oct 2015 19:25:19 +0000 (00:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:45:38 +0000 (20:45 -0700)
commite525e7a63ba4b544f47fe57a3ed3480af288f8eb
treed916aa060dec9167794ceb2604bf60719bf50f0d
parentd84d66f6f7f33f74abe4a8446006fe44fcc90a1f
Staging: rtl8188eu: core: Use ARRAY_SIZE macro

ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its type.

Changes made using Coccinelle-

@@
type T;
T[] E;
@@

- (sizeof(E)/sizeof(T))
+ ARRAY_SIZE(E)

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
drivers/staging/rtl8188eu/core/rtw_rf.c
This page took 0.024338 seconds and 5 git commands to generate.