Skip to contentSkip to conversation

staging: android: ion: fix warning found by checkpatch.pl

PATCH New Wayne Porter 1 participant 1 message Sep 30, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: android: ion: fix warning found by checkpatch.pl

Fix checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks

---
 drivers/staging/android/ion/hisilicon/hi6220_ion.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/android/ion/hisilicon/hi6220_ion.c +2 -2
index a2f2611..0de7897 100644
@@ -82,9 +82,9 @@ static int hi6220_ion_remove(struct platform_device *pdev)
 
 	ipdev = platform_get_drvdata(pdev);
 
-	for (i = 0; i < ipdev->data->nr; i++) {
+	for (i = 0; i < ipdev->data->nr; i++)
 		ion_heap_destroy(ipdev->heaps[i]);
-	}
+
 	ion_destroy_platform_data(ipdev->data);
 	ion_device_destroy(ipdev->idev);
 
Signature · 1 line
2.1.4