diff options
author | Doug Wilson <doug.lkml@gmail.com> | 2014-03-07 16:29:03 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-17 15:55:49 -0400 |
commit | 151b628f104566a450125a6a0f6775a35bde58d6 (patch) | |
tree | e95287521c0aa02871d23d85fad9891572386c2f /arch | |
parent | 1535bd8adbdedd60a0ee62e28fd5225d66434371 (diff) |
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 <doug.lkml@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/mm/tsb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |