* [patch 2/4] misdn: one handmade ARRAY_SIZE converted
@ 2009-01-09 20:22 akpm
2009-01-10 7:10 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2009-01-09 20:22 UTC (permalink / raw)
To: kkeil; +Cc: netdev, akpm, ilpo.jarvinen
From: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Defined as:
static struct device_attribute element_attributes[] = {
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-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) {
_
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-10 7:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-09 20:22 [patch 2/4] misdn: one handmade ARRAY_SIZE converted akpm
2009-01-10 7:10 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).