summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorMichel von Czettritz <michel.von.czettritz@gmail.com>2015-03-27 19:42:48 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-04-03 13:39:32 +0200
commitf46a04c75605fd55879c797fd7f349f8cb32bb88 (patch)
treed3ca538ae972fdf495465393a4ee221cab8aaaac /drivers/staging
parent27fa159bd2958ed2146d794c295c32e4fe4dd055 (diff)
downloadop-kernel-dev-f46a04c75605fd55879c797fd7f349f8cb32bb88.zip
op-kernel-dev-f46a04c75605fd55879c797fd7f349f8cb32bb88.tar.gz
staging: sm750: no braces for single stmt if blocks
This patches fixes checkpatch.pl warning: "WARNING: braces {} are not necessary for single statement blocks" Signed-off-by: Michel von Czettritz <michel.von.czettritz@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/sm750fb/sm750.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index d9a94d7..786679d 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -131,9 +131,8 @@ static int lynxfb_ops_cursor(struct fb_info *info, struct fb_cursor *fbcursor)
}
cursor->disable(cursor);
- if (fbcursor->set & FB_CUR_SETSIZE) {
+ if (fbcursor->set & FB_CUR_SETSIZE)
cursor->setSize(cursor, fbcursor->image.width, fbcursor->image.height);
- }
if (fbcursor->set & FB_CUR_SETPOS) {
cursor->setPos(cursor, fbcursor->image.dx - info->var.xoffset,
@@ -162,9 +161,8 @@ static int lynxfb_ops_cursor(struct fb_info *info, struct fb_cursor *fbcursor)
fbcursor->mask);
}
- if (fbcursor->enable) {
+ if (fbcursor->enable)
cursor->enable(cursor);
- }
return 0;
}
@@ -176,9 +174,8 @@ static void lynxfb_ops_fillrect(struct fb_info *info, const struct fb_fillrect *
unsigned int base, pitch, Bpp, rop;
u32 color;
- if (info->state != FBINFO_STATE_RUNNING) {
+ if (info->state != FBINFO_STATE_RUNNING)
return;
- }
par = info->par;
share = par->share;
OpenPOWER on IntegriCloud