Skip to content

Commit

Permalink
staging/easycap: easycap_probe: drop more unused variables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomas Winkler authored and Greg Kroah-Hartman committed May 18, 2011
1 parent 1d243c2 commit 8041f92
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/staging/easycap/easycap_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 8041f92

Please sign in to comment.