Skip to contentSkip to conversation

misdn: indentation and braces disagree - add braces

PATCH Applied [email protected] 1 participant 1 message Jan 9, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/4 misdn: indentation and braces disagree - add braces

From: Ilpo Järvinen <[email protected]>

This is not buggy due to plain luck as there is only one entry currently in the element_attributes.

---

 drivers/isdn/mISDN/dsp_pipeline.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/isdn/mISDN/dsp_pipeline.c renamed from drivers/isdn/mISDN/dsp_pipeline.c~misdn-indentation-and-braces-disagree-add-braces +2 -1
diff -puN drivers/isdn/mISDN/dsp_pipeline.c~misdn-indentation-and-braces-disagree-add-braces drivers/isdn/mISDN/dsp_pipeline.c
@@ -99,7 +99,7 @@ int mISDN_dsp_element_register(struct mI
 		goto err1;
 	}
 
-	for (i = 0; i < ARRAY_SIZE(element_attributes); ++i)
+	for (i = 0; i < ARRAY_SIZE(element_attributes); ++i) {
 		ret = device_create_file(&entry->dev,
 				&element_attributes[i]);
 		if (ret) {
@@ -107,6 +107,7 @@ int mISDN_dsp_element_register(struct mI
 				__func__);
 			goto err2;
 		}
+	}
 
 	list_add_tail(&entry->list, &dsp_elements);
 

_