projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c5a6d8
)
drivers/video/fbdev/sis/sis_main.c: remove unnecessary test on unsigned value
author
Fabian Frederick
<fabf@skynet.be>
Wed, 11 Jun 2014 19:54:00 +0000
(21:54 +0200)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Tue, 24 Jun 2014 07:55:18 +0000
(10:55 +0300)
unsigned value is never < 0
Cc: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/sis/sis_main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/video/fbdev/sis/sis_main.c
b/drivers/video/fbdev/sis/sis_main.c
index 22ad028bf123c2ca4bf9030049fea40f5910fc38..3f12a2dd959a0ade49737a9938654acd14a4233f 100644
(file)
--- a/
drivers/video/fbdev/sis/sis_main.c
+++ b/
drivers/video/fbdev/sis/sis_main.c
@@
-1572,10
+1572,6
@@
sisfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
/* Adapt RGB settings */
sisfb_bpp_to_var(ivideo, var);
- /* Sanity check for offsets */
- if(var->xoffset < 0) var->xoffset = 0;
- if(var->yoffset < 0) var->yoffset = 0;
-
if(var->xres > var->xres_virtual)
var->xres_virtual = var->xres;