From: Ahmed S. Darwish Date: Mon, 12 Feb 2007 08:52:05 +0000 (-0800) Subject: [PATCH] w1: Use ARRAY_SIZE macro when appropriate X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9d0094de6dfda8209241787d99f531356469d0f5;p=mv-sheeva.git [PATCH] w1: Use ARRAY_SIZE macro when appropriate A patch to use ARRAY_SIZE macro already defined in kernel.h Signed-off-by: Ahmed S. Darwish Acked-by: Evgeniy Polyakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/w1/slaves/w1_therm.c b/drivers/w1/slaves/w1_therm.c index b022fffd8c5..732db478004 100644 --- a/drivers/w1/slaves/w1_therm.c +++ b/drivers/w1/slaves/w1_therm.c @@ -141,7 +141,7 @@ static inline int w1_convert_temp(u8 rom[9], u8 fid) { int i; - for (i=0; ifid == fid) return w1_therm_families[i].convert(rom); @@ -238,7 +238,7 @@ static int __init w1_therm_init(void) { int err, i; - for (i=0; i