diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2010-01-13 13:34:27 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:47 -0500 |
commit | ab6c8cf21e180bcee1a6669f59ef62c0cceaf5d6 (patch) | |
tree | 57447da03d6ec44cd53970b7c356429225d94999 /drivers | |
parent | 14799f6cf35f843806019f548e80ffa669d16102 (diff) |
V4L/DVB: gspca - main: Clear any previous USB error when starting the transfer
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 04aaa88ce4f5..6a6e22c61779 100644 --- a/drivers/media/video/gspca/gspca.c +++ b/drivers/media/video/gspca/gspca.c | |||
@@ -589,6 +589,8 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev) | |||
589 | goto out; | 589 | goto out; |
590 | } | 590 | } |
591 | 591 | ||
592 | gspca_dev->usb_err = 0; | ||
593 | |||
592 | /* set the higher alternate setting and | 594 | /* set the higher alternate setting and |
593 | * loop until urb submit succeeds */ | 595 | * loop until urb submit succeeds */ |
594 | if (gspca_dev->cam.reverse_alts) | 596 | if (gspca_dev->cam.reverse_alts) |