The ARRAY_SIZE macro is convenient, yet mostly unused. Switch lots of
code to use it. That makes the code more readable and also less error-prone. Abuild tested. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3624 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
dc65196f8f
commit
2ee6779a64
166 changed files with 326 additions and 208 deletions
|
|
@ -70,7 +70,7 @@ int mount_fs(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < sizeof(fsys_table)/sizeof(fsys_table[0]); i++) {
|
||||
for (i = 0; i < ARRAY_SIZE(fsys_table); i++) {
|
||||
if (fsys_table[i].mount_func()) {
|
||||
fsys = &fsys_table[i];
|
||||
printk_info("Mounted %s\n", fsys->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue