OSDN Git Service

USB: dummy-hcd: don't set gadget.speed in dummy_hub_control()
authorRoger Quadros <rogerq@ti.com>
Fri, 3 Nov 2017 11:23:15 +0000 (13:23 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 11 Dec 2017 10:36:52 +0000 (12:36 +0200)
commit8ea409044ca0f8504b69ece3ef69191aa846090b
tree43a8d6e01e313793b0c9b865368385aefd2c1a02
parent3700df921401b336bc03043c7d49c32bc2419b13
USB: dummy-hcd: don't set gadget.speed in dummy_hub_control()

There will never be a case when gadget.speed isn't already
USB_SPEED_FULL if connection is not USB-3 and gadget.speed
is not USB_SPEED_HIGH or USB_SPEED_LOW.

Remove the unnecessary code.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/dummy_hcd.c