From: David Brownell Date: Mon, 18 Sep 2006 23:53:26 +0000 (-0700) Subject: USB: remove OTG build warning X-Git-Tag: v2.6.19-rc1~899^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fc849b85fb14ccbbc10098d501a870bc9b44a641;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 00441cde458..2a8cb3c2b19 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -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)