aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/s3c-fb.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-10-26 01:54:01 -0400
committerJingoo Han <jg1.han@samsung.com>2012-11-25 23:35:36 -0500
commit418d620e080f3d17735be8ee95a2f40c0e6edc3e (patch)
tree87bbab270c4397acea2d46fd43dbcc8992d13d79 /drivers/video/s3c-fb.c
parentd65c6a99bccca167df8ddcb93a2190f048727914 (diff)
video: s3c-fb: return an error when bpp is invalid
This patch returns an error, when bpp is invalid in s3c_fb_check_var(). If invalid bpp is requested, an error should be returned. Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Diffstat (limited to 'drivers/video/s3c-fb.c')
-rw-r--r--drivers/video/s3c-fb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 9cee67c08d94..21e5d79ce65d 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -330,6 +330,7 @@ static int s3c_fb_check_var(struct fb_var_screeninfo *var,
330 330
331 default: 331 default:
332 dev_err(sfb->dev, "invalid bpp\n"); 332 dev_err(sfb->dev, "invalid bpp\n");
333 return -EINVAL;
333 } 334 }
334 335
335 dev_dbg(sfb->dev, "%s: verified parameters\n", __func__); 336 dev_dbg(sfb->dev, "%s: verified parameters\n", __func__);