From: Antonino A. Daplas Date: Tue, 10 Jan 2006 04:53:17 +0000 (-0800) Subject: [PATCH] vesafb: Trim vesafb_pan_display X-Git-Tag: v2.6.16-rc1~540 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f845fbac4e68573351965d9aaf626a63cc4151c7;p=linux-2.6 [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/vesafb.c b/drivers/video/vesafb.c index 55e28ba57b..e6e56b8df2 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__(