aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fbtft/fb_pcd8544.c
diff options
context:
space:
mode:
authorAya Mahfouz <mahfouz.saif.elyazal@gmail.com>2015-02-19 04:53:59 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-26 13:06:13 -0800
commit9d1d0a38bd7f0ee22081beabb2baac89ce6a4e58 (patch)
treef81d65e0cc8f6bfcb8c77055839de3e2cd0b75d9 /drivers/staging/fbtft/fb_pcd8544.c
parentstaging: fbtft: fix code indent should use tabs where possible (diff)
downloadlinux-dev-9d1d0a38bd7f0ee22081beabb2baac89ce6a4e58.tar.xz
linux-dev-9d1d0a38bd7f0ee22081beabb2baac89ce6a4e58.zip
staging: fbtft: fix braces {} are not necessary for single statement blocks
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>
Diffstat (limited to 'drivers/staging/fbtft/fb_pcd8544.c')
-rw-r--r--drivers/staging/fbtft/fb_pcd8544.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/fbtft/fb_pcd8544.c b/drivers/staging/fbtft/fb_pcd8544.c
index 8b9ebfb49ef8..5e08a70c25b4 100644
--- a/drivers/staging/fbtft/fb_pcd8544.c
+++ b/drivers/staging/fbtft/fb_pcd8544.c
@@ -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++;
}
}