]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0399bd00f0de127286df79379411e8da60818a2a
treed916aa060dec9167794ceb2604bf60719bf50f0d
parent19055a574abfd99edc5821e40d6d9fccbdf0a03e
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