Commit 6165cc51 authored by Elad Wexler's avatar Elad Wexler Committed by Greg Kroah-Hartman

Staging: usbip: stub_dev: Fixed checkpatch warnings

Coding style issues
Signed-off-by: default avatarElad Wexler <eladwexler77@yahoo.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0e3633f6
...@@ -357,8 +357,9 @@ static int stub_probe(struct usb_interface *interface, ...@@ -357,8 +357,9 @@ static int stub_probe(struct usb_interface *interface,
busid_priv = get_busid_priv(udev_busid); busid_priv = get_busid_priv(udev_busid);
if (!busid_priv || (busid_priv->status == STUB_BUSID_REMOV) || if (!busid_priv || (busid_priv->status == STUB_BUSID_REMOV) ||
(busid_priv->status == STUB_BUSID_OTHER)) { (busid_priv->status == STUB_BUSID_OTHER)) {
dev_info(&interface->dev, "%s is not in match_busid table... " dev_info(&interface->dev,
"skip!\n", udev_busid); "%s is not in match_busid table... skip!\n",
udev_busid);
/* /*
* Return value should be ENODEV or ENOXIO to continue trying * Return value should be ENODEV or ENOXIO to continue trying
...@@ -375,8 +376,10 @@ static int stub_probe(struct usb_interface *interface, ...@@ -375,8 +376,10 @@ static int stub_probe(struct usb_interface *interface,
} }
if (!strcmp(udev->bus->bus_name, "vhci_hcd")) { if (!strcmp(udev->bus->bus_name, "vhci_hcd")) {
dev_dbg(&udev->dev, "%s is attached on vhci_hcd... skip!\n", dev_dbg(&udev->dev,
"%s is attached on vhci_hcd... skip!\n",
udev_busid); udev_busid);
return -ENODEV; return -ENODEV;
} }
...@@ -386,8 +389,8 @@ static int stub_probe(struct usb_interface *interface, ...@@ -386,8 +389,8 @@ static int stub_probe(struct usb_interface *interface,
return -ENODEV; return -ENODEV;
busid_priv->interf_count++; busid_priv->interf_count++;
dev_info(&interface->dev, "usbip-host: register new interface " dev_info(&interface->dev,
"(bus %u dev %u ifn %u)\n", "usbip-host: register new interface (bus %u dev %u ifn %u)\n",
udev->bus->busnum, udev->devnum, udev->bus->busnum, udev->devnum,
interface->cur_altsetting->desc.bInterfaceNumber); interface->cur_altsetting->desc.bInterfaceNumber);
...@@ -412,8 +415,9 @@ static int stub_probe(struct usb_interface *interface, ...@@ -412,8 +415,9 @@ static int stub_probe(struct usb_interface *interface,
if (!sdev) if (!sdev)
return -ENOMEM; return -ENOMEM;
dev_info(&interface->dev, "usbip-host: register new device " dev_info(&interface->dev,
"(bus %u dev %u ifn %u)\n", udev->bus->busnum, udev->devnum, "usbip-host: register new device (bus %u dev %u ifn %u)\n",
udev->bus->busnum, udev->devnum,
interface->cur_altsetting->desc.bInterfaceNumber); interface->cur_altsetting->desc.bInterfaceNumber);
busid_priv->interf_count = 0; busid_priv->interf_count = 0;
......
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