Skip to content

Commit

Permalink
staging/usbip: simplify usbip_dump_usb_device() udev->speed handling
Browse files Browse the repository at this point in the history
Change usbip_dump_usb_device() to use usb_speed_string() and remove the
code that does switch on udev->speed and builds custom speed strings.

Signed-off-by: Shuah Khan <shuah.kh@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Shuah Khan authored and Greg Kroah-Hartman committed Feb 7, 2014
1 parent b7945b7 commit 09c8c8f
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions drivers/staging/usbip/usbip_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,26 +99,8 @@ static void usbip_dump_usb_device(struct usb_device *udev)
struct device *dev = &udev->dev;
int i;

dev_dbg(dev, " devnum(%d) devpath(%s) ",
udev->devnum, udev->devpath);

switch (udev->speed) {
case USB_SPEED_HIGH:
pr_debug("SPD_HIGH ");
break;
case USB_SPEED_FULL:
pr_debug("SPD_FULL ");
break;
case USB_SPEED_LOW:
pr_debug("SPD_LOW ");
break;
case USB_SPEED_UNKNOWN:
pr_debug("SPD_UNKNOWN ");
break;
default:
pr_debug("SPD_ERROR ");
break;
}
dev_dbg(dev, " devnum(%d) devpath(%s) usb speed(%s)",
udev->devnum, udev->devpath, usb_speed_string(udev->speed));

pr_debug("tt %p, ttport %d\n", udev->tt, udev->ttport);

Expand Down

0 comments on commit 09c8c8f

Please sign in to comment.