From: Ahmed S. Darwish Date: Tue, 6 Feb 2007 00:10:25 +0000 (-0800) Subject: [ARM] Use ARRAY_SIZE macro when appropriate X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=eeea82ff4a3aebed9f501f04ca7b65d3605f247a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git [ARM] Use ARRAY_SIZE macro when appropriate Use ARRAY_SIZE macro already defined in linux/kernel.h Signed-off-by: Ahmed S. Darwish Signed-off-by: Andrew Morton Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/ecard.c b/arch/arm/kernel/ecard.c index 71257e3d513f..f1c0fb974177 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;