summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2009-01-09 12:22:51 -0800
committerKarsten Keil <kkeil@suse.de>2009-01-11 18:17:50 +0100
commit1916ebb2ddad78ae6405b1291acb9f9de212ec49 (patch)
treed5678e25c29614454575ec304283fa00f1cf54d4 /drivers
parent20b788045b73e81ace2498eae42220e64547d6d2 (diff)
downloadop-kernel-dev-1916ebb2ddad78ae6405b1291acb9f9de212ec49.zip
op-kernel-dev-1916ebb2ddad78ae6405b1291acb9f9de212ec49.tar.gz
misdn: one handmade ARRAY_SIZE converted
Defined as: static struct device_attribute element_attributes[] = { Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Karsten Keil <kkeil@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/isdn/mISDN/dsp_pipeline.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/isdn/mISDN/dsp_pipeline.c b/drivers/isdn/mISDN/dsp_pipeline.c
index bf999bd..0c773fa 100644
--- a/drivers/isdn/mISDN/dsp_pipeline.c
+++ b/drivers/isdn/mISDN/dsp_pipeline.c
@@ -110,8 +110,7 @@ int mISDN_dsp_element_register(struct mISDN_dsp_element *elem)
}
list_add_tail(&entry->list, &dsp_elements);
- 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) {
OpenPOWER on IntegriCloud