diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-11 15:54:00 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-06-24 03:55:18 -0400 |
commit | 7f8b9db7dde4ee70160993ea3fa22293b2c5c598 (patch) | |
tree | 1b1aca51c6a564e40c6bd8ff84a778e6a3736fa4 | |
parent | 8c5a6d835e35af3990af526c7bfc204cba88a7d5 (diff) |
drivers/video/fbdev/sis/sis_main.c: remove unnecessary test on unsigned value
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>
-rw-r--r-- | drivers/video/fbdev/sis/sis_main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/video/fbdev/sis/sis_main.c b/drivers/video/fbdev/sis/sis_main.c index 22ad028bf123..3f12a2dd959a 100644 --- 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) | |||
1572 | /* Adapt RGB settings */ | 1572 | /* Adapt RGB settings */ |
1573 | sisfb_bpp_to_var(ivideo, var); | 1573 | sisfb_bpp_to_var(ivideo, var); |
1574 | 1574 | ||
1575 | /* Sanity check for offsets */ | ||
1576 | if(var->xoffset < 0) var->xoffset = 0; | ||
1577 | if(var->yoffset < 0) var->yoffset = 0; | ||
1578 | |||
1579 | if(var->xres > var->xres_virtual) | 1575 | if(var->xres > var->xres_virtual) |
1580 | var->xres_virtual = var->xres; | 1576 | var->xres_virtual = var->xres; |
1581 | 1577 | ||