From: Krzysztof Helt <redacted>
These checks and assignments are done by
a higher layer so remove them from the driver.
Signed-off-by: Krzysztof Helt <redacted>
---
diff -urp linux-rc2/drivers/video/tdfxfb.c linux-new/drivers/video/tdfxfb.c
--- linux-rc2/drivers/video/tdfxfb.c 2008-05-12 18:16:24.541623784 +0200
+++ linux-new/drivers/video/tdfxfb.c 2008-05-27 18:14:09.731595627 +0200
@@ -836,16 +836,12 @@ static int tdfxfb_pan_display(struct fb_
struct tdfx_par *par = info->par;
u32 addr = var->yoffset * info->fix.line_length;
- if (nopan || var->xoffset || (var->yoffset > var->yres_virtual))
- return -EINVAL;
- if ((var->yoffset + var->yres > var->yres_virtual && nowrap))
+ if (nopan || var->xoffset)
return -EINVAL;
banshee_make_room(par, 1);
tdfx_outl(par, VIDDESKSTART, addr);
- info->var.xoffset = var->xoffset;
- info->var.yoffset = var->yoffset;
return 0;
}
----------------------------------------------------------------------
Tanie rozmowy!
Sprawdz >>> http://link.interia.pl/f1e13
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/