Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc849b85 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman
Browse files

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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 26f953fd
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -1254,7 +1254,6 @@ int usb_new_device(struct usb_device *udev)
					USB_DT_OTG, (void **) &desc) == 0) {
					USB_DT_OTG, (void **) &desc) == 0) {
			if (desc->bmAttributes & USB_OTG_HNP) {
			if (desc->bmAttributes & USB_OTG_HNP) {
				unsigned		port1 = udev->portnum;
				unsigned		port1 = udev->portnum;
				struct usb_device	*root = udev->parent;


				dev_info(&udev->dev,
				dev_info(&udev->dev,
					"Dual-Role OTG device on %sHNP port\n",
					"Dual-Role OTG device on %sHNP port\n",