Skip to content

Commit

Permalink
sparc64:tsb.c:use array size macro rather than number
Browse files Browse the repository at this point in the history
    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>
  • Loading branch information
Doug Wilson authored and David S. Miller committed Mar 17, 2014
1 parent 1535bd8 commit 151b628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc/mm/tsb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 151b628

Please sign in to comment.