V4L/DVB (10382): gspca - t613: Bad returned value when no known sensor found.
authorJean-Francois Moine <moinejf@free.fr>
Thu, 22 Jan 2009 15:53:56 +0000 (12:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:34 +0000 (12:42 -0300)
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/t613.c

index a97920e..49db21e 100644 (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) {