Skip to content

Commit

Permalink
[PATCH] vesafb: Trim vesafb_pan_display
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antonino A. Daplas authored and Linus Torvalds committed Jan 10, 2006
1 parent 32cf8c1 commit f845fba
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/video/vesafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down

0 comments on commit f845fba

Please sign in to comment.