aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/vesafb.c
diff options
context:
space:
mode:
authorAntonino A. Daplas <adaplas@gmail.com>2006-01-09 20:53:17 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 08:01:47 -0800
commitf845fbac4e68573351965d9aaf626a63cc4151c7 (patch)
treee644f9ea48b829c37b466b2bc7aa29e1dfb71600 /drivers/video/vesafb.c
parent32cf8c1e50ac9d49f348e886c6e664cdc37aaead (diff)
[PATCH] vesafb: Trim vesafb_pan_display
Remove error checking from vesafb_pan_display. This is guaranteed to be done by the core layer. Signed-off-by: Antonino Daplas <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/vesafb.c')
-rw-r--r--drivers/video/vesafb.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/video/vesafb.c b/drivers/video/vesafb.c
index 55e28ba57b4..e6e56b8df2d 100644
--- a/drivers/video/vesafb.c
+++ b/drivers/video/vesafb.c
@@ -66,15 +66,6 @@ static int vesafb_pan_display(struct fb_var_screeninfo *var,
#ifdef __i386__
int offset;
- if (!ypan)
- return -EINVAL;
- if (var->xoffset)
- return -EINVAL;
- if (var->yoffset > var->yres_virtual)
- return -EINVAL;
- if ((ypan==1) && var->yoffset+var->yres > var->yres_virtual)
- return -EINVAL;
-
offset = (var->yoffset * info->fix.line_length + var->xoffset) / 4;
__asm__ __volatile__(