projects
/
qemu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use the ARRAY_SIZE() macro where appropriate.
[qemu]
/
hw
/
sh_intc.h
diff --git
a/hw/sh_intc.h
b/hw/sh_intc.h
index
4e36f00
..
a9750ae
100644
(file)
--- a/
hw/sh_intc.h
+++ b/
hw/sh_intc.h
@@
-32,7
+32,7
@@
struct intc_prio_reg {
unsigned long value;
};
-#define _INTC_ARRAY(a) a, sizeof(a)/sizeof(*a)
+#define _INTC_ARRAY(a) a, ARRAY_SIZE(a)
struct intc_source {
unsigned short vect;