mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 10:56:40 +00:00
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:
parent
2d56f3bbe7
commit
409b11dd74
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user