diff options
Diffstat (limited to 'kernel/drivers/staging/speakup/i18n.c')
-rw-r--r-- | kernel/drivers/staging/speakup/i18n.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/drivers/staging/speakup/i18n.c b/kernel/drivers/staging/speakup/i18n.c index 9ea16c5b4..12f880ed4 100644 --- a/kernel/drivers/staging/speakup/i18n.c +++ b/kernel/drivers/staging/speakup/i18n.c @@ -1,5 +1,6 @@ /* Internationalization implementation. Includes definitions of English - * string arrays, and the i18n pointer. */ + * string arrays, and the i18n pointer. + */ #include <linux/slab.h> /* For kmalloc. */ #include <linux/ctype.h> @@ -388,7 +389,7 @@ static struct msg_group_t all_groups[] = { }, }; -static const int num_groups = sizeof(all_groups) / sizeof(struct msg_group_t); +static const int num_groups = ARRAY_SIZE(all_groups); char *spk_msg_get(enum msg_index_t index) { |