Commit f46a04c7 authored by Michel von Czettritz's avatar Michel von Czettritz Committed by Greg Kroah-Hartman

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: default avatarMichel von Czettritz <michel.von.czettritz@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 27fa159b
...@@ -131,9 +131,8 @@ static int lynxfb_ops_cursor(struct fb_info *info, struct fb_cursor *fbcursor) ...@@ -131,9 +131,8 @@ static int lynxfb_ops_cursor(struct fb_info *info, struct fb_cursor *fbcursor)
} }
cursor->disable(cursor); cursor->disable(cursor);
if (fbcursor->set & FB_CUR_SETSIZE) { if (fbcursor->set & FB_CUR_SETSIZE)
cursor->setSize(cursor, fbcursor->image.width, fbcursor->image.height); cursor->setSize(cursor, fbcursor->image.width, fbcursor->image.height);
}
if (fbcursor->set & FB_CUR_SETPOS) { if (fbcursor->set & FB_CUR_SETPOS) {
cursor->setPos(cursor, fbcursor->image.dx - info->var.xoffset, 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) ...@@ -162,9 +161,8 @@ static int lynxfb_ops_cursor(struct fb_info *info, struct fb_cursor *fbcursor)
fbcursor->mask); fbcursor->mask);
} }
if (fbcursor->enable) { if (fbcursor->enable)
cursor->enable(cursor); cursor->enable(cursor);
}
return 0; return 0;
} }
...@@ -176,9 +174,8 @@ static void lynxfb_ops_fillrect(struct fb_info *info, const struct fb_fillrect * ...@@ -176,9 +174,8 @@ static void lynxfb_ops_fillrect(struct fb_info *info, const struct fb_fillrect *
unsigned int base, pitch, Bpp, rop; unsigned int base, pitch, Bpp, rop;
u32 color; u32 color;
if (info->state != FBINFO_STATE_RUNNING) { if (info->state != FBINFO_STATE_RUNNING)
return; return;
}
par = info->par; par = info->par;
share = par->share; share = par->share;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment