]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: android: ion: fix warning found by checkpatch.pl
authorWayne Porter <wporter82@gmail.com>
Fri, 30 Sep 2016 23:12:55 +0000 (23:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 2 Oct 2016 14:58:29 +0000 (16:58 +0200)
Fix checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Wayne Porter <wporter82@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/hisilicon/hi6220_ion.c

index 659aa71a196272808628ac232e1b1916737761fb..bd45151a2130ccdf74116a769c4d8650934251ec 100644 (file)
@@ -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);