public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gspca main: remove unnecessary set to alternate 0
@ 2009-11-29 10:24 Németh Márton
  0 siblings, 0 replies; only message in thread
From: Németh Márton @ 2009-11-29 10:24 UTC (permalink / raw)
  To: Jean-Francois Moine, V4L Mailing List

From: Márton Németh <nm127@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 <nm127@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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-11-29 10:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-29 10:24 [PATCH] gspca main: remove unnecessary set to alternate 0 Németh Márton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox