Message ID | 1393956248-9354-1-git-send-email-doug.lkml@gmail.com |
---|---|
State | Changes Requested |
Delegated to: | David Miller |
Headers | show |
From: Doug <doug.lkml@gmail.com> Date: Tue, 4 Mar 2014 23:34:08 +0530 > This is a small patch which uses ARRAY_SIZE macro > rather than a number to make code readability better. > > Signed-off-by: Doug <doug.lkml@gmail.com> Doug, please provide your full real-name, including your last name, in your From: and Signoff. Thank you. -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
> > Doug, please provide your full real-name, including your last > name, in your From: and Signoff. Sorry David. I'll resend the patch. - Doug -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/sparc/mm/tsb.c b/arch/sparc/mm/tsb.c index 3b3a360..f5d506f 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];
This is a small patch which uses ARRAY_SIZE macro rather than a number to make code readability better. Signed-off-by: Doug <doug.lkml@gmail.com> --- arch/sparc/mm/tsb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)