diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-05 16:10:25 -0800 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2007-02-11 16:46:30 +0000 |
commit | eeea82ff4a3aebed9f501f04ca7b65d3605f247a (patch) | |
tree | 7fd2b91fb7d091e517b63c7010f9ca71fa684c66 /arch/arm/kernel | |
parent | 00584719b569accd039543f6bd2ac7c23c92d07f (diff) | |
download | op-kernel-dev-eeea82ff4a3aebed9f501f04ca7b65d3605f247a.zip op-kernel-dev-eeea82ff4a3aebed9f501f04ca7b65d3605f247a.tar.gz |
[ARM] Use ARRAY_SIZE macro when appropriate
Use ARRAY_SIZE macro already defined in linux/kernel.h
Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/ecard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/ecard.c b/arch/arm/kernel/ecard.c index 71257e3..f1c0fb9 100644 --- a/arch/arm/kernel/ecard.c +++ b/arch/arm/kernel/ecard.c @@ -1009,7 +1009,7 @@ ecard_probe(int slot, card_type_t type) ec->fiqmask = 4; } - for (i = 0; i < sizeof(blacklist) / sizeof(*blacklist); i++) + for (i = 0; i < ARRAY_SIZE(blacklist); i++) if (blacklist[i].manufacturer == ec->cid.manufacturer && blacklist[i].product == ec->cid.product) { ec->card_desc = blacklist[i].type; |