Commit 4063ea9a authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Greg Kroah-Hartman

staging: sm750fb: simplify return

Lets return the return value directly instead of using a variable to
store the result.
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f8fbc838
...@@ -298,17 +298,13 @@ static int lynxfb_ops_pan_display(struct fb_var_screeninfo *var, ...@@ -298,17 +298,13 @@ static int lynxfb_ops_pan_display(struct fb_var_screeninfo *var,
{ {
struct lynxfb_par *par; struct lynxfb_par *par;
struct lynxfb_crtc *crtc; struct lynxfb_crtc *crtc;
int ret;
if (!info) if (!info)
return -EINVAL; return -EINVAL;
ret = 0;
par = info->par; par = info->par;
crtc = &par->crtc; crtc = &par->crtc;
ret = crtc->proc_panDisplay(crtc, var, info); return crtc->proc_panDisplay(crtc, var, info);
return ret;
} }
static int lynxfb_ops_set_par(struct fb_info *info) static int lynxfb_ops_set_par(struct fb_info *info)
......
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