staging/easycap: easycap_probe: drop more unused variables
authorTomas Winkler <tomas.winkler@intel.com>
Wed, 18 May 2011 19:29:30 +0000 (22:29 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 18 May 2011 21:30:08 +0000 (14:30 -0700)
wMaxPacketSize are  bEndpointAddress assigned but not used

Cc: Mike Thomas <rmthomas@sciolus.org>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/easycap/easycap_main.c

index 9b6aef08ee4c399c38244126f24c3b58284a0dc2..62e07f6a026c86461c42e7ee88b803557c0d9a2c 100644 (file)
@@ -2986,8 +2986,6 @@ static int easycap_usb_probe(struct usb_interface *intf,
        struct easycap *peasycap;
        int ndong;
        struct data_urb *pdata_urb;
-       size_t wMaxPacketSize;
-       u8 bEndpointAddress;
        int i, j, k, m, rc;
        u8 bInterfaceNumber;
        u8 bInterfaceClass;
@@ -3350,9 +3348,6 @@ static int easycap_usb_probe(struct usb_interface *intf,
                                SAM("...... skipping\n");
                                continue;
                        }
-                       wMaxPacketSize = le16_to_cpu(ep->wMaxPacketSize);
-                       bEndpointAddress = ep->bEndpointAddress;
-
 
                        if (!usb_endpoint_is_isoc_in(ep)) {
                                JOM(4, "intf[%i]alt[%i]end[%i] is a %d endpoint\n",