Commit 409b11dd authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab

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

Signed-off-by: default avatarJean-Francois Moine <moinejf@free.fr>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2d56f3bb
...@@ -694,7 +694,7 @@ static int sd_init(struct gspca_dev *gspca_dev) ...@@ -694,7 +694,7 @@ static int sd_init(struct gspca_dev *gspca_dev)
break; break;
default: default:
PDEBUG(D_CONF, "unknown sensor %04x", sensor_id); PDEBUG(D_CONF, "unknown sensor %04x", sensor_id);
return -1; return -EINVAL;
} }
if (sd->sensor != SENSOR_OTHER) { if (sd->sensor != SENSOR_OTHER) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment