[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200901092022.n09KMqpJ019945@imap1.linux-foundation.org>
Date: Fri, 09 Jan 2009 12:22:51 -0800
From: akpm@...ux-foundation.org
To: kkeil@...e.de
Cc: netdev@...r.kernel.org, akpm@...ux-foundation.org,
ilpo.jarvinen@...sinki.fi
Subject: [patch 2/4] misdn: one handmade ARRAY_SIZE converted
From: Ilpo Järvinen <ilpo.jarvinen@...sinki.fi>
Defined as:
static struct device_attribute element_attributes[] = {
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@...sinki.fi>
Cc: Karsten Keil <kkeil@...e.de>
Signed-off-by: Andrew Morton <akpm@...ux-foundation.org>
---
drivers/isdn/mISDN/dsp_pipeline.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff -puN drivers/isdn/mISDN/dsp_pipeline.c~misdn-one-handmade-array_size-converted drivers/isdn/mISDN/dsp_pipeline.c
--- a/drivers/isdn/mISDN/dsp_pipeline.c~misdn-one-handmade-array_size-converted
+++ a/drivers/isdn/mISDN/dsp_pipeline.c
@@ -99,8 +99,7 @@ int mISDN_dsp_element_register(struct mI
goto err1;
}
- for (i = 0; i < (sizeof(element_attributes)
- / sizeof(struct device_attribute)); ++i)
+ for (i = 0; i < ARRAY_SIZE(element_attributes); ++i)
ret = device_create_file(&entry->dev,
&element_attributes[i]);
if (ret) {
_
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists