summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca
diff options
context:
space:
mode:
authorMárton Németh <nm127@freemail.hu>2009-11-29 08:25:20 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-12-16 00:17:59 -0200
commit747c710098101fb2f2766171c5fc069289b56ed6 (patch)
tree97e2d15f30a766e6628c02aa3010bd53e41d2440 /drivers/media/video/gspca
parentd50e257ee8d1a16ca91f9286120f222d34853c49 (diff)
downloadblackbird-op-linux-747c710098101fb2f2766171c5fc069289b56ed6.tar.gz
blackbird-op-linux-747c710098101fb2f2766171c5fc069289b56ed6.zip
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/media/video/gspca')
-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,
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);
OpenPOWER on IntegriCloud