]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: speakup: Use ARRAY_SIZE macro
authorShraddha Barke <shraddha.6596@gmail.com>
Wed, 7 Oct 2015 12:49:37 +0000 (18:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2015 09:50:27 +0000 (10:50 +0100)
commit9bcb5ac4f40ceb9150abfa0cb6bf1ea78533d4a3
tree86cd04729d3ca3a440cccb2e2d997cccaa4f838b
parent347cbada7258660cd5104b623fbd0167ac866596
Staging: speakup: 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 or the size of its first element.

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/speakup/i18n.c