diff options
author | Ahmed S. Darwish <darwish.07@gmail.com> | 2007-02-10 01:43:29 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 10:51:19 -0800 |
commit | c1725f2af89f1eda3cb9007290971b55084569a4 (patch) | |
tree | 60df96c427864db06f51af50a55072785426f46a /arch/arm26 | |
parent | 65fdc8544f7d27df95256cbcfc2a53fa0fa38134 (diff) | |
download | kernel_samsung_tuna-c1725f2af89f1eda3cb9007290971b55084569a4.zip kernel_samsung_tuna-c1725f2af89f1eda3cb9007290971b55084569a4.tar.gz kernel_samsung_tuna-c1725f2af89f1eda3cb9007290971b55084569a4.tar.bz2 |
[PATCH] ARM26: 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>
Acked-by: Ian Molton <spyro@f2s.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm26')
-rw-r--r-- | arch/arm26/kernel/ecard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm26/kernel/ecard.c b/arch/arm26/kernel/ecard.c index 9dbc1724..e2bcefc 100644 --- a/arch/arm26/kernel/ecard.c +++ b/arch/arm26/kernel/ecard.c @@ -665,7 +665,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; |