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-Url: https://git.stricted.de/?a=commitdiff_plain;h=ab6c8cf21e180bcee1a6669f59ef62c0cceaf5d6;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.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 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) goto out; } + gspca_dev->usb_err = 0; + /* set the higher alternate setting and * loop until urb submit succeeds */ if (gspca_dev->cam.reverse_alts)