git.openpandora.org
/
pandora-u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
post: use ARRAY_SIZE
[pandora-u-boot.git]
/
post
/
lib_powerpc
/
threex.c
diff --git
a/post/lib_powerpc/threex.c
b/post/lib_powerpc/threex.c
index
350a12a
..
7769218
100644
(file)
--- a/
post/lib_powerpc/threex.c
+++ b/
post/lib_powerpc/threex.c
@@
-125,8
+125,7
@@
static struct cpu_post_threex_s
0x1000
},
};
-static unsigned int cpu_post_threex_size =
- sizeof (cpu_post_threex_table) / sizeof (struct cpu_post_threex_s);
+static unsigned int cpu_post_threex_size = ARRAY_SIZE(cpu_post_threex_table);
int cpu_post_test_threex (void)
{