staging: fbtft: fix braces {} are not necessary for single statement blocks
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Thu, 19 Feb 2015 02:53:59 +0000 (04:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Feb 2015 21:06:13 +0000 (13:06 -0800)
This patch fixes the following checkpatch.pl warning:
braces {} are not necessary for single statement blocks

Signed-off-by: Aya Mahfouz <mahfouz.saif.elyazal@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fb_pcd8544.c

index 8b9ebfb49ef8e733c5d1030e9db54f314a68c6b0..5e08a70c25b4d54e84402d3af7648c59c1386bae 100644 (file)
@@ -120,9 +120,8 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
        for (x = 0; x < 84; x++) {
                for (y = 0; y < 6; y++) {
                        *buf = 0x00;
-                       for (i = 0; i < 8; i++) {
+                       for (i = 0; i < 8; i++)
                                *buf |= (vmem16[(y*8+i)*84+x] ? 1 : 0) << i;
-                       }
                        buf++;
                }
        }
This page took 0.025104 seconds and 5 git commands to generate.