projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
The ARRAY_SIZE macro is convenient, yet mostly unused. Switch lots of
[coreboot.git]
/
src
/
mainboard
/
tyan
/
s2912
/
resourcemap.c
diff --git
a/src/mainboard/tyan/s2912/resourcemap.c
b/src/mainboard/tyan/s2912/resourcemap.c
index 4801643c934c420972bda3dee125b00a10f5b409..f289ce78982412df0b8bd7865ac762ab3eb9df35 100644
(file)
--- a/
src/mainboard/tyan/s2912/resourcemap.c
+++ b/
src/mainboard/tyan/s2912/resourcemap.c
@@
-277,7
+277,7
@@
static void setup_mb_resource_map(void)
};
int max;
- max =
sizeof(register_values)/sizeof(register_values[0]
);
+ max =
ARRAY_SIZE(register_values
);
setup_resource_map(register_values, max);
}