summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/gspca.c
diff options
context:
space:
mode:
authorJean-François Moine <moinejf@free.fr>2011-11-30 05:54:16 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-12-11 09:26:11 -0200
commit6121ca572f1b38dbce79b0366b47dbf2ce305eec (patch)
tree947dc5b9e4b33668300d920ce9aaea2fb9f74eb8 /drivers/media/video/gspca/gspca.c
parenta67648797a9cc5a407b7b81825b48ca5920c0c91 (diff)
downloadlinux-6121ca572f1b38dbce79b0366b47dbf2ce305eec.tar.gz
linux-6121ca572f1b38dbce79b0366b47dbf2ce305eec.tar.bz2
linux-6121ca572f1b38dbce79b0366b47dbf2ce305eec.zip
[media] gspca: Remove the useless variable 'nbalt'
As the alternate settings are now sorted in gspca main, the variable 'nbalt' is no more useful. Signed-off-by: Jean-François Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/gspca.c')
-rw-r--r--drivers/media/video/gspca/gspca.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/gspca/gspca.c b/drivers/media/video/gspca/gspca.c
index 881e04c7ffe6..271be9866893 100644
--- a/drivers/media/video/gspca/gspca.c
+++ b/drivers/media/video/gspca/gspca.c
@@ -880,7 +880,7 @@ static int gspca_init_transfer(struct gspca_dev *gspca_dev)
for (;;) {
if (alt != gspca_dev->alt) {
alt = gspca_dev->alt;
- if (gspca_dev->nbalt > 1) {
+ if (intf->num_altsetting > 1) {
ret = usb_set_interface(gspca_dev->dev,
gspca_dev->iface,
alt);
@@ -2300,7 +2300,6 @@ int gspca_dev_probe2(struct usb_interface *intf,
}
gspca_dev->dev = dev;
gspca_dev->iface = intf->cur_altsetting->desc.bInterfaceNumber;
- gspca_dev->nbalt = intf->num_altsetting;
/* check if any audio device */
if (dev->config->desc.bNumInterfaces != 1) {