V4L/DVB (10382): gspca - t613: Bad returned value when no known sensor found.

Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Jean-Francois Moine 2009-01-22 12:53:56 -03:00 committed by Mauro Carvalho Chehab
parent 2d56f3bbe7
commit 409b11dd74

View File

@ -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) {