aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMárton Németh <nm127@freemail.hu>2009-11-29 06:25:20 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-15 21:17:59 -0500
commit747c710098101fb2f2766171c5fc069289b56ed6 (patch)
tree97e2d15f30a766e6628c02aa3010bd53e41d2440 /drivers
parentd50e257ee8d1a16ca91f9286120f222d34853c49 (diff)
V4L/DVB (13561): gspca - main: Remove unnecessary set to alternate 0.
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/gspca/gspca.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index 92ed4d968cb0..0a99a21f265b 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -2048,9 +2048,6 @@ int gspca_dev_probe(struct usb_interface *intf,
2048 ret = sd_desc->init(gspca_dev); 2048 ret = sd_desc->init(gspca_dev);
2049 if (ret < 0) 2049 if (ret < 0)
2050 goto out; 2050 goto out;
2051 ret = gspca_set_alt0(gspca_dev);
2052 if (ret < 0)
2053 goto out;
2054 gspca_set_default_mode(gspca_dev); 2051 gspca_set_default_mode(gspca_dev);
2055 2052
2056 mutex_init(&gspca_dev->usb_lock); 2053 mutex_init(&gspca_dev->usb_lock);