Merge tag 'pm+acpi-4.4-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
[firefly-linux-kernel-4.4.55.git] / drivers / staging / speakup / i18n.c
index f061747546a66d364980a06ba7759e0235f78cc8..12f880ed4ddfc7d13a0566c21baf0e8ac7aaff57 100644 (file)
@@ -389,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)
 {