Commit c53a8e95 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Mauro Carvalho Chehab

[media] cx231xx: remove useless 'lif' variable in cx231xx_usb_probe()

Now that we set the intfdata on the right interface, the 'lif'
variable is useless.
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent a116a05c
...@@ -1016,7 +1016,6 @@ static int cx231xx_usb_probe(struct usb_interface *interface, ...@@ -1016,7 +1016,6 @@ static int cx231xx_usb_probe(struct usb_interface *interface,
int i, isoc_pipe = 0; int i, isoc_pipe = 0;
char *speed; char *speed;
char descr[255] = ""; char descr[255] = "";
struct usb_interface *lif = NULL;
struct usb_interface_assoc_descriptor *assoc_desc; struct usb_interface_assoc_descriptor *assoc_desc;
udev = usb_get_dev(interface_to_usbdev(interface)); udev = usb_get_dev(interface_to_usbdev(interface));
...@@ -1071,9 +1070,6 @@ static int cx231xx_usb_probe(struct usb_interface *interface, ...@@ -1071,9 +1070,6 @@ static int cx231xx_usb_probe(struct usb_interface *interface,
/* init CIR module TBD */ /* init CIR module TBD */
/* store the current interface */
lif = interface;
/*mode_tv: digital=1 or analog=0*/ /*mode_tv: digital=1 or analog=0*/
dev->mode_tv = 0; dev->mode_tv = 0;
...@@ -1113,9 +1109,6 @@ static int cx231xx_usb_probe(struct usb_interface *interface, ...@@ -1113,9 +1109,6 @@ static int cx231xx_usb_probe(struct usb_interface *interface,
le16_to_cpu(udev->descriptor.idProduct), le16_to_cpu(udev->descriptor.idProduct),
dev->max_iad_interface_count); dev->max_iad_interface_count);
/* store the interface 0 back */
lif = udev->actconfig->interface[0];
/* increment interface count */ /* increment interface count */
dev->interface_count++; dev->interface_count++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment