From: Doug Wilson Date: Fri, 7 Mar 2014 10:59:03 +0000 (+0530) Subject: sparc64:tsb.c:use array size macro rather than number X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=151b628f104566a450125a6a0f6775a35bde58d6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sparc64:tsb.c:use array size macro rather than number This is a small patch which uses ARRAY_SIZE macro rather than a number to make code readability better. Signed-off-by: Doug Wilson Signed-off-by: David S. Miller --- diff --git a/arch/sparc/mm/tsb.c b/arch/sparc/mm/tsb.c index 3b3a360b429a..f5d506fdddad 100644 --- a/arch/sparc/mm/tsb.c +++ b/arch/sparc/mm/tsb.c @@ -273,7 +273,7 @@ void __init pgtable_cache_init(void) prom_halt(); } - for (i = 0; i < 8; i++) { + for (i = 0; i < ARRAY_SIZE(tsb_cache_names); i++) { unsigned long size = 8192 << i; const char *name = tsb_cache_names[i];