sparc64:tsb.c:use array size macro rather than number
PATCH 1/1 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 <[email protected]>
--- arch/sparc/mm/tsb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sparc/mm/tsb.c +1 -1
@@ -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];
Signature · 1 line
1.8.1.2
David Miller
maintainerFrom: Doug <[email protected]>
Date: Tue, 4 Mar 2014 23:34:08 +0530
Quoted 4 lines
This is a small patch which uses
ARRAY_SIZEmacro rather than a number to make code readability better.Signed-off-by Doug <[email protected]>
Doug, please provide your full real-name, including your last name, in your From: and Signoff.
Thank you.
Quoted 3 lines
Doug, please provide your full real-name, including your last name, in your From: and Signoff.
Sorry David. I'll resend the patch.
- Doug