diff options
| author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2016-08-31 11:44:29 -0400 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-09-07 04:16:05 -0400 |
| commit | b6a694b7209121ed8c416d1f9ab92780c4cc7a10 (patch) | |
| tree | a8d7afda07cf23d19ed63b7d9556aef2237a960a /drivers/video/fbdev | |
| parent | ee65e18206f5b430d71c39f72fa85a8d1f2b999d (diff) | |
video: fbdev: intelfb: remove impossible condition
xoffset and yoffset of struct fb_var_screeninfo are unsigned and so
they can never be less than 0.
Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/fbdev')
| -rw-r--r-- | drivers/video/fbdev/intelfb/intelfbdrv.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/video/fbdev/intelfb/intelfbdrv.c b/drivers/video/fbdev/intelfb/intelfbdrv.c index bf207444ba0c..ff2a5d2023e1 100644 --- a/drivers/video/fbdev/intelfb/intelfbdrv.c +++ b/drivers/video/fbdev/intelfb/intelfbdrv.c | |||
| @@ -1301,11 +1301,6 @@ static int intelfb_check_var(struct fb_var_screeninfo *var, | |||
| 1301 | break; | 1301 | break; |
| 1302 | } | 1302 | } |
| 1303 | 1303 | ||
| 1304 | if (v.xoffset < 0) | ||
| 1305 | v.xoffset = 0; | ||
| 1306 | if (v.yoffset < 0) | ||
| 1307 | v.yoffset = 0; | ||
| 1308 | |||
| 1309 | if (v.xoffset > v.xres_virtual - v.xres) | 1304 | if (v.xoffset > v.xres_virtual - v.xres) |
| 1310 | v.xoffset = v.xres_virtual - v.xres; | 1305 | v.xoffset = v.xres_virtual - v.xres; |
| 1311 | if (v.yoffset > v.yres_virtual - v.yres) | 1306 | if (v.yoffset > v.yres_virtual - v.yres) |
