From: Jiri Slaby Date: Tue, 17 Jul 2007 11:05:21 +0000 (-0700) Subject: Char: vt, use ARRAY_SIZE X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0f11541b505464ec5105302910453ac4ad065fc6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Char: vt, use ARRAY_SIZE vt, use ARRAY_SIZE Signed-off-by: Jiri Slaby Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/vt.c b/drivers/char/vt.c index 5db295d7a879..349673d432f1 100644 --- a/drivers/char/vt.c +++ b/drivers/char/vt.c @@ -1990,8 +1990,7 @@ static int is_double_width(uint32_t ucs) { 0xFE10, 0xFE19 }, { 0xFE30, 0xFE6F }, { 0xFF00, 0xFF60 }, { 0xFFE0, 0xFFE6 }, { 0x20000, 0x2FFFD }, { 0x30000, 0x3FFFD } }; - return bisearch(ucs, double_width, - sizeof(double_width) / sizeof(*double_width) - 1); + return bisearch(ucs, double_width, ARRAY_SIZE(double_width) - 1); } /* acquires console_sem */