projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0058471
)
[ARM] Use ARRAY_SIZE macro when appropriate
author
Ahmed S. Darwish
<darwish.07@gmail.com>
Tue, 6 Feb 2007 00:10:25 +0000
(16:10 -0800)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Sun, 11 Feb 2007 16:46:30 +0000
(16:46 +0000)
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>
arch/arm/kernel/ecard.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/kernel/ecard.c
b/arch/arm/kernel/ecard.c
index 71257e3d513f4604ed1d01c3db5eb8fb565bcf47..f1c0fb974177803c0ec2510d79d4e9c72669164b 100644
(file)
--- 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;