diff options
author | Márton Németh <nm127@freemail.hu> | 2009-11-29 12:25:20 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-16 03:17:59 +0100 |
commit | 747c710098101fb2f2766171c5fc069289b56ed6 (patch) | |
tree | 97e2d15f30a766e6628c02aa3010bd53e41d2440 /drivers/media/video/gspca/gspca.c | |
parent | V4L/DVB (13560): gspca - main: Cleanup source. (diff) | |
download | linux-747c710098101fb2f2766171c5fc069289b56ed6.tar.xz 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 '')
-rw-r--r-- | drivers/media/video/gspca/gspca.c | 3 |
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); |