diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2005-11-09 21:03:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-09 21:03:42 +0100 |
commit | 84c1a13a30f21406f39e546684a78ebe9859e6d7 (patch) | |
tree | 296330a7d501eb349070363df28da70b10a62963 /arch/sparc64/kernel/sbus.c | |
parent | [SPARC]: Use ARRAY_SIZE macro (diff) | |
download | linux-84c1a13a30f21406f39e546684a78ebe9859e6d7.tar.xz linux-84c1a13a30f21406f39e546684a78ebe9859e6d7.zip |
[SPARC64]: 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/sparc64/kernel/sbus.c')
-rw-r--r-- | arch/sparc64/kernel/sbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/kernel/sbus.c b/arch/sparc64/kernel/sbus.c index e09ddf927655..96b825055668 100644 --- a/arch/sparc64/kernel/sbus.c +++ b/arch/sparc64/kernel/sbus.c @@ -790,7 +790,7 @@ static unsigned long sysio_irq_offsets[] = { #undef bogon -#define NUM_SYSIO_OFFSETS (sizeof(sysio_irq_offsets) / sizeof(sysio_irq_offsets[0])) +#define NUM_SYSIO_OFFSETS ARRAY_SIZE(sysio_irq_offsets) /* Convert Interrupt Mapping register pointer to associated * Interrupt Clear register pointer, SYSIO specific version. |