mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
USB: remove OTG build warning
Somewhere along the line, a variable in a USB-OTG codepath stopped being used; this removes the relevant compiler warning. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
26f953fd88
commit
fc849b85fb
@ -1254,8 +1254,7 @@ int usb_new_device(struct usb_device *udev)
|
||||
USB_DT_OTG, (void **) &desc) == 0) {
|
||||
if (desc->bmAttributes & USB_OTG_HNP) {
|
||||
unsigned port1 = udev->portnum;
|
||||
struct usb_device *root = udev->parent;
|
||||
|
||||
|
||||
dev_info(&udev->dev,
|
||||
"Dual-Role OTG device on %sHNP port\n",
|
||||
(port1 == bus->otg_port)
|
||||
|
Loading…
Reference in New Issue
Block a user