staging: rtl8723au: hal: Use macro ARRAY_SIZE
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Thu, 18 Feb 2016 19:30:13 +0000 (01:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 23:04:11 +0000 (15:04 -0800)
commitbfb7ff2c0bf322a1780e1cf2479ace7a5beb8ab9
treef6094d5078069113ff655b79ad8fdccdbcc30789
parent382f00561cf322d63bd5f946f226ec630ee9866a
staging: rtl8723au: hal: Use macro ARRAY_SIZE

The macro ARRAY_SIZE is more concise to use instead of dividing
size of the array by the size of its type.

Changes were made using Coccinelle.

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

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

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/HalHWImg8723A_RF.c