提交 151b628f 编写于 作者: D Doug Wilson 提交者: David S. Miller

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: NDoug Wilson <doug.lkml@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1535bd8a
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册