From: Jean-Francois Moine Date: Wed, 13 Jan 2010 18:34:27 +0000 (-0300) Subject: V4L/DVB: gspca - main: Clear any previous USB error when starting the transfer X-Git-Tag: v3.0~5946^2~180 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab6c8cf21e180bcee1a6669f59ef62c0cceaf5d6;p=platform%2Fkernel%2Flinux-amlogic.git V4L/DVB: gspca - main: Clear any previous USB error when starting the transfer Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c index 04aaa88..6a6e22c 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) goto out; } + gspca_dev->usb_err = 0; + /* set the higher alternate setting and * loop until urb submit succeeds */ if (gspca_dev->cam.reverse_alts)