From: Antonino A. Daplas Date: Tue, 10 Jan 2006 04:53:17 +0000 (-0800) Subject: [PATCH] vesafb: Trim vesafb_pan_display X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f845fbac4e68573351965d9aaf626a63cc4151c7;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [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 55e28ba57b43..e6e56b8df2db 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__(