diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-08-07 15:04:06 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-08 01:12:54 +0300 |
commit | 4063ea9af6d287975732a0c992e7fe870591d365 (patch) | |
tree | 98c97019cc24efd6b932bf09f7d2b3780f421870 /drivers/staging/sm750fb/sm750.c | |
parent | f8fbc838f4b2cd72da11568b09b956806b98c29e (diff) | |
download | linux-4063ea9af6d287975732a0c992e7fe870591d365.tar.xz |
staging: sm750fb: simplify return
Lets return the return value directly instead of using a variable to
store the result.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/sm750.c')
-rw-r--r-- | drivers/staging/sm750fb/sm750.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index e7fad0f2cdf8..07f8afd2defe 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -298,17 +298,13 @@ static int lynxfb_ops_pan_display(struct fb_var_screeninfo *var, { struct lynxfb_par *par; struct lynxfb_crtc *crtc; - int ret; if (!info) return -EINVAL; - ret = 0; par = info->par; crtc = &par->crtc; - ret = crtc->proc_panDisplay(crtc, var, info); - - return ret; + return crtc->proc_panDisplay(crtc, var, info); } static int lynxfb_ops_set_par(struct fb_info *info) |