diff options
author | Antonino A. Daplas <adaplas@gmail.com> | 2006-01-09 23:53:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 11:01:47 -0500 |
commit | f845fbac4e68573351965d9aaf626a63cc4151c7 (patch) | |
tree | e644f9ea48b829c37b466b2bc7aa29e1dfb71600 /drivers/video/vesafb.c | |
parent | 32cf8c1e50ac9d49f348e886c6e664cdc37aaead (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.c | 9 |
1 files changed, 0 insertions, 9 deletions
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, | |||
66 | #ifdef __i386__ | 66 | #ifdef __i386__ |
67 | int offset; | 67 | int offset; |
68 | 68 | ||
69 | if (!ypan) | ||
70 | return -EINVAL; | ||
71 | if (var->xoffset) | ||
72 | return -EINVAL; | ||
73 | if (var->yoffset > var->yres_virtual) | ||
74 | return -EINVAL; | ||
75 | if ((ypan==1) && var->yoffset+var->yres > var->yres_virtual) | ||
76 | return -EINVAL; | ||
77 | |||
78 | offset = (var->yoffset * info->fix.line_length + var->xoffset) / 4; | 69 | offset = (var->yoffset * info->fix.line_length + var->xoffset) / 4; |
79 | 70 | ||
80 | __asm__ __volatile__( | 71 | __asm__ __volatile__( |