From: Jean-Francois Moine Date: Thu, 15 Jan 2009 12:34:55 +0000 (-0300) Subject: V4L/DVB (10363): gspca - spca500: Abnormal error message when starting ClickSmart310. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=48d7a8912751d46f5401cbd86eb6408b48050da2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git V4L/DVB (10363): gspca - spca500: Abnormal error message when starting ClickSmart310. Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/spca500.c b/drivers/media/video/gspca/spca500.c index 62c12fa10570..f44613095d2e 100644 --- a/drivers/media/video/gspca/spca500.c +++ b/drivers/media/video/gspca/spca500.c @@ -711,7 +711,8 @@ static int sd_start(struct gspca_dev *gspca_dev) write_vector(gspca_dev, spca500_visual_defaults); spca500_setmode(gspca_dev, xmult, ymult); /* enable drop packet */ - reg_w(gspca_dev, 0x00, 0x850a, 0x0001); + err = reg_w(gspca_dev, 0x00, 0x850a, 0x0001); + if (err < 0) PDEBUG(D_ERR, "failed to enable drop packet"); reg_w(gspca_dev, 0x00, 0x8880, 3); err = spca50x_setup_qtable(gspca_dev,