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
/
gigabyte
/
ga_2761gxdk
/
resourcemap.c
diff --git
a/src/mainboard/gigabyte/ga_2761gxdk/resourcemap.c
b/src/mainboard/gigabyte/ga_2761gxdk/resourcemap.c
index 7754471e945f534e1b5eff64c588367564add965..43ff3ed11aceebf632e6d65cfea6600cacd4b20d 100644
(file)
--- a/
src/mainboard/gigabyte/ga_2761gxdk/resourcemap.c
+++ b/
src/mainboard/gigabyte/ga_2761gxdk/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);
}