]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: rtl8712: Use ARRAY_SIZE macro
authorShraddha Barke <shraddha.6596@gmail.com>
Thu, 8 Oct 2015 19:25:18 +0000 (00:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 03:43:20 +0000 (20:43 -0700)
commit1d5fbe39eb461aa4096f46006d55b89f6c01f90b
treef1fb2439ef234ea77ccfd5e545d31532b5c6cf43
parent9cf94e5c33ae7383b0582ffb8af8426b77bbf55f
Staging: rtl8712: 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/rtl8712/usb_intf.c