From f845fbac4e68573351965d9aaf626a63cc4151c7 Mon Sep 17 00:00:00 2001 From: "Antonino A. Daplas" Date: Mon, 9 Jan 2006 20:53:17 -0800 Subject: [PATCH] [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 --- drivers/video/vesafb.c | 9 --------- 1 file changed, 9 deletions(-) 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__( -- 2.39.5