Skip to content

Commit

Permalink
V4L/DVB: gspca - main: Clear any previous USB error when starting the…
Browse files Browse the repository at this point in the history
… transfer

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Jean-Francois Moine authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 14799f6 commit ab6c8cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/video/gspca/gspca.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev)
goto out;
}

gspca_dev->usb_err = 0;

/* set the higher alternate setting and
* loop until urb submit succeeds */
if (gspca_dev->cam.reverse_alts)
Expand Down

0 comments on commit ab6c8cf

Please sign in to comment.