Skip to content

Commit

Permalink
Staging: line6: driver: fix up sparse warnings
Browse files Browse the repository at this point in the history
minor stuff.

Cc: Markus Grabner <grabner@icg.tugraz.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed May 11, 2010
1 parent 74112d3 commit 1e18c0d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/staging/line6/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ static void line6_data_received(struct urb *urb)
static int line6_send(struct usb_line6 *line6, unsigned char *buf, size_t len)
{
int retval;
unsigned int partial;
int partial;

#if DO_DUMP_URB_SEND
line6_write_hexdump(line6, 'S', buf, len);
Expand Down Expand Up @@ -684,11 +684,11 @@ static int line6_probe(struct usb_interface *interface, const struct usb_device_

/* check vendor and product id */
for (devtype = ARRAY_SIZE(line6_id_table) - 1; devtype--;) {
u16 vendor = le16_to_cpu(usbdev->descriptor.idVendor);
u16 product = le16_to_cpu(usbdev->descriptor.idProduct);
u16 idVendor = le16_to_cpu(usbdev->descriptor.idVendor);
u16 idProduct = le16_to_cpu(usbdev->descriptor.idProduct);

if (vendor == line6_id_table[devtype].idVendor
&& product == line6_id_table[devtype].idProduct)
if (idVendor == line6_id_table[devtype].idVendor
&& idProduct == line6_id_table[devtype].idProduct)
break;
}

Expand Down

0 comments on commit 1e18c0d

Please sign in to comment.