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-Url: http://git.lede-project.org./?a=commitdiff_plain;h=409b11dd74e653dd4dace01b0f3f8e987fe7fe81;p=openwrt%2Fstaging%2Fblogic.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 a97920eb03f9..49db21e1376c 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) {