projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1dfee6
)
video: vfb: Remove incorrect check
author
Sachin Kamat
<sachin.kamat@linaro.org>
Wed, 25 Sep 2013 12:02:56 +0000
(17:32 +0530)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Thu, 26 Sep 2013 08:52:31 +0000
(11:52 +0300)
'yoffset' is unsigned and hence cannot be less than 0.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/vfb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/vfb.c
b/drivers/video/vfb.c
index ee5985efa15c83c64d7e22718c22c594e0338f0e..ea2b523f804f17be41fcca523942ba3eb6b4f697 100644
(file)
--- a/
drivers/video/vfb.c
+++ b/
drivers/video/vfb.c
@@
-390,9
+390,8
@@
static int vfb_pan_display(struct fb_var_screeninfo *var,
struct fb_info *info)
{
if (var->vmode & FB_VMODE_YWRAP) {
- if (var->yoffset < 0
- || var->yoffset >= info->var.yres_virtual
- || var->xoffset)
+ if (var->yoffset >= info->var.yres_virtual ||
+ var->xoffset)
return -EINVAL;
} else {
if (var->xoffset + info->var.xres > info->var.xres_virtual ||