projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8639fac
)
video: aty: Remove incorrect checks
author
Sachin Kamat
<sachin.kamat@linaro.org>
Wed, 25 Sep 2013 12:02:58 +0000
(17:32 +0530)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Thu, 26 Sep 2013 08:52:31 +0000
(11:52 +0300)
'xoffset' and 'yoffset' are 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/aty/radeon_base.c
patch
|
blob
|
history
diff --git
a/drivers/video/aty/radeon_base.c
b/drivers/video/aty/radeon_base.c
index 1e30b2b3e79f3f0cf939272f9d43ce00d692b1d0..26d80a4486fb3024137ce2d38588f0d9b63d1f09 100644
(file)
--- a/
drivers/video/aty/radeon_base.c
+++ b/
drivers/video/aty/radeon_base.c
@@
-819,11
+819,6
@@
static int radeonfb_check_var (struct fb_var_screeninfo *var, struct fb_info *in
if (v.xres_virtual < v.xres)
v.xres = v.xres_virtual;
- if (v.xoffset < 0)
- v.xoffset = 0;
- if (v.yoffset < 0)
- v.yoffset = 0;
-
if (v.xoffset > v.xres_virtual - v.xres)
v.xoffset = v.xres_virtual - v.xres - 1;