From: Márton Németh <nm...@freemail.hu>

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 <nm...@freemail.hu>
---
diff -r 064a82aa2daa linux/drivers/media/video/gspca/gspca.c
--- a/linux/drivers/media/video/gspca/gspca.c   Thu Nov 26 19:36:40 2009 +0100
+++ b/linux/drivers/media/video/gspca/gspca.c   Sun Nov 29 11:14:23 2009 +0100
@@ -2066,9 +2060,6 @@
        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);

        mutex_init(&gspca_dev->usb_lock);
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to