Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1916ebb2 authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by Karsten Keil
Browse files

misdn: one handmade ARRAY_SIZE converted



Defined as:

static struct device_attribute element_attributes[] = {

Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarKarsten Keil <kkeil@suse.de>
parent 20b78804
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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) {