summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Wilson <doug.lkml@gmail.com>2014-03-07 11:59:03 +0100
committerDavid S. Miller <davem@davemloft.net>2014-03-17 20:55:49 +0100
commit151b628f104566a450125a6a0f6775a35bde58d6 (patch)
treee95287521c0aa02871d23d85fad9891572386c2f
parentsparc64: don't treat 64-bit syscall return codes as 32-bit (diff)
downloadlinux-151b628f104566a450125a6a0f6775a35bde58d6.tar.xz
linux-151b628f104566a450125a6a0f6775a35bde58d6.zip
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>
-rw-r--r--arch/sparc/mm/tsb.c2
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];