Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317412
b: refs/heads/master
c: 47cee13
h: refs/heads/master
v: v3
  • Loading branch information
Miguel Gómez authored and Greg Kroah-Hartman committed Jun 19, 2012
1 parent fd23fec commit 7bf29ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 96cd1f8b41c36c2520cc8b524734784a9e995ff2
refs/heads/master: 47cee13d1dfe9867758c82a5ef93fd96629ceefd
2 changes: 0 additions & 2 deletions trunk/drivers/staging/xgifb/XGI_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
#include "XGIfb.h"
#include "vb_def.h"

#define XGIFAIL(x) do { printk(x "\n"); return -EINVAL; } while (0)

#ifndef PCI_DEVICE_ID_XGI_42
#define PCI_DEVICE_ID_XGI_42 0x042
#endif
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/staging/xgifb/XGI_main_26.c
Original file line number Diff line number Diff line change
Expand Up @@ -1376,8 +1376,10 @@ static int XGIfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
vtotal = var->upper_margin + var->yres + var->lower_margin
+ var->vsync_len;

if (!(htotal) || !(vtotal))
XGIFAIL("XGIfb: no valid timing data");
if (!(htotal) || !(vtotal)) {
pr_debug("XGIfb: no valid timing data\n");
return -EINVAL;
}

if (var->pixclock && htotal && vtotal) {
drate = 1000000000 / var->pixclock;
Expand Down

0 comments on commit 7bf29ab

Please sign in to comment.