Commit ef084028 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: fix keyspan_remote endian bug on probe

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 91e79c91
...@@ -431,11 +431,6 @@ static int keyspan_probe(struct usb_interface *interface, const struct usb_devic ...@@ -431,11 +431,6 @@ static int keyspan_probe(struct usb_interface *interface, const struct usb_devic
struct usb_endpoint_descriptor *endpoint; struct usb_endpoint_descriptor *endpoint;
struct usb_device *udev = usb_get_dev(interface_to_usbdev(interface)); struct usb_device *udev = usb_get_dev(interface_to_usbdev(interface));
/* See if the offered device matches what we can accept */
if ((udev->descriptor.idVendor != USB_KEYSPAN_VENDOR_ID) ||
(udev->descriptor.idProduct != USB_KEYSPAN_PRODUCT_UIA11) )
return -ENODEV;
/* allocate memory for our device state and initialize it */ /* allocate memory for our device state and initialize it */
remote = kmalloc(sizeof(*remote), GFP_KERNEL); remote = kmalloc(sizeof(*remote), GFP_KERNEL);
if (remote == NULL) { if (remote == NULL) {
......
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