Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105538
b: refs/heads/master
c: c2c1215
h: refs/heads/master
v: v3
  • Loading branch information
Krzysztof Helt authored and Linus Torvalds committed Jul 24, 2008
1 parent d5c123c commit bd49e21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98219374d9ed2d257e56e8e1fcd9d16a083397bb
refs/heads/master: c2c12155cf05bf3e25eeae5711beffc634505400
6 changes: 1 addition & 5 deletions trunk/drivers/video/tdfxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,16 +836,12 @@ static int tdfxfb_pan_display(struct fb_var_screeninfo *var,
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;
}

Expand Down

0 comments on commit bd49e21

Please sign in to comment.