Browse Source

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>
Roger Quadros 8 years ago
parent
commit
8ea409044c
1 changed files with 0 additions and 2 deletions
  1. 0 2
      drivers/usb/gadget/udc/dummy_hcd.c

+ 0 - 2
drivers/usb/gadget/udc/dummy_hcd.c

@@ -2193,8 +2193,6 @@ static int dummy_hub_control(
 							USB_PORT_STAT_LOW_SPEED;
 						break;
 					default:
-						dum_hcd->dum->gadget.speed =
-							USB_SPEED_FULL;
 						break;
 					}
 				}