diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2005-11-09 21:03:05 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-09 21:03:05 +0100 |
commit | 940fdc6e1223f1323b88b7f1e7ae09a93a76b74d (patch) | |
tree | 5a4ea9eb953dedae6bc0b7828a63133f16a5902a /arch/sparc/kernel/pcic.c | |
parent | Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart (diff) | |
download | linux-940fdc6e1223f1323b88b7f1e7ae09a93a76b74d.tar.xz linux-940fdc6e1223f1323b88b7f1e7ae09a93a76b74d.zip |
[SPARC]: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove a
duplicate of ARRAY_SIZE which is never used anyways.
Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/pcic.c')
-rw-r--r-- | arch/sparc/kernel/pcic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/pcic.c b/arch/sparc/kernel/pcic.c index 25e31d5ec99b..cccfc12802ed 100644 --- a/arch/sparc/kernel/pcic.c +++ b/arch/sparc/kernel/pcic.c @@ -143,7 +143,7 @@ static struct pcic_ca2irq pcic_i_jk[] = { * as several PROMs may be installed on the same physical board. */ #define SN2L_INIT(name, map) \ - { name, map, sizeof(map)/sizeof(struct pcic_ca2irq) } + { name, map, ARRAY_SIZE(map) } static struct pcic_sn2list pcic_known_sysnames[] = { SN2L_INIT("SUNW,JavaEngine1", pcic_i_je1a), /* JE1, PROM 2.32 */ |