提交 8ea40904 编写于 作者: R Roger Quadros 提交者: Felipe Balbi

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: NAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: NRoger Quadros <rogerq@ti.com>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 3700df92
...@@ -2193,8 +2193,6 @@ static int dummy_hub_control( ...@@ -2193,8 +2193,6 @@ static int dummy_hub_control(
USB_PORT_STAT_LOW_SPEED; USB_PORT_STAT_LOW_SPEED;
break; break;
default: default:
dum_hcd->dum->gadget.speed =
USB_SPEED_FULL;
break; break;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册