mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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>
This commit is contained in:
parent
1535bd8adb
commit
151b628f10
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue