misdn: one handmade ARRAY_SIZE converted

Defined as:

static struct device_attribute element_attributes[] = {

Signed-off-by: Ilpo Järvinen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Karsten Keil <[email protected]>
This commit is contained in:
Ilpo Järvinen 2009-01-09 12:22:51 -08:00 • committed by Karsten Keil
commit 1916ebb2dd

View file

@ -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) {