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>
This commit is contained in:
Márton Németh 2009-11-29 08:25:20 -03:00 committed by Mauro Carvalho Chehab
parent d50e257ee8
commit 747c710098

View 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);