Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271900
b: refs/heads/master
c: 4274d84
h: refs/heads/master
v: v3
  • Loading branch information
Jean-François Moine authored and Mauro Carvalho Chehab committed Sep 24, 2011
1 parent 1eba25b commit 0461b35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27b12023d72207b2d0b38bb9ef4fdb0a3325b682
refs/heads/master: 4274d84ce801b763615152b276e2a341a30c3a82
3 changes: 3 additions & 0 deletions trunk/drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,8 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev)
gspca_dev->iface,
alt);
if (ret < 0) {
if (ret == -ENOSPC)
goto retry; /*fixme: ugly*/
pr_err("set alt %d err %d\n", alt, ret);
goto out;
}
Expand Down Expand Up @@ -942,6 +944,7 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev)

/* the bandwidth is not wide enough
* negotiate or try a lower alternate setting */
retry:
PDEBUG(D_ERR|D_STREAM,
"alt %d - bandwidth not wide enough - trying again",
alt);
Expand Down

0 comments on commit 0461b35

Please sign in to comment.