From: Jean-Francois Moine Date: Thu, 22 Jan 2009 15:53:56 +0000 (-0300) Subject: V4L/DVB (10382): gspca - t613: Bad returned value when no known sensor found. X-Git-Tag: v3.12-rc1~15594^2~608 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=409b11dd74e653dd4dace01b0f3f8e987fe7fe81;p=kernel%2Fkernel-generic.git V4L/DVB (10382): gspca - t613: Bad returned value when no known sensor found. Signed-off-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c index a97920e..49db21e 100644 --- a/drivers/media/video/gspca/t613.c +++ b/drivers/media/video/gspca/t613.c @@ -694,7 +694,7 @@ static int sd_init(struct gspca_dev *gspca_dev) break; default: PDEBUG(D_CONF, "unknown sensor %04x", sensor_id); - return -1; + return -EINVAL; } if (sd->sensor != SENSOR_OTHER) {