V4L/DVB (13561): gspca - main: Remove unnecessary set to alternate 0.
authorMárton Németh <nm127@freemail.hu>
Sun, 29 Nov 2009 11:25:20 +0000 (08:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 16 Dec 2009 02:17:59 +0000 (00:17 -0200)
Calling gspca_set_alt0() in gspca_dev_probe() is not needed as gspca_set_alt0()
will do nothing because gspca_dev->alt is always zero at that time.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c

index 92ed4d968cb08d2f5142c9887c96b291ee33070b..0a99a21f265baaca5aa0e0e621321fe9596d7e4f 100644 (file)
@@ -2046,9 +2046,6 @@ int gspca_dev_probe(struct usb_interface *intf,
        if (ret < 0)
                goto out;
        ret = sd_desc->init(gspca_dev);
-       if (ret < 0)
-               goto out;
-       ret = gspca_set_alt0(gspca_dev);
        if (ret < 0)
                goto out;
        gspca_set_default_mode(gspca_dev);