usb: dwc3: remove repeated setting of current_dr_role
Subsystems (3)
PATCH 1/1 usb: dwc3: remove repeated setting of current_dr_role
dwc3_set_prtcap() already sets current_dr_role asDWC3_GCTL_PRTCAP_OTG, so remove the repeated one.
Signed-off-by Chunfeng Yun <[email protected]>
--- drivers/usb/dwc3/drd.c | 1 - 1 file changed, 1 deletion(-)
drivers/usb/dwc3/drd.c +0 -1
@@ -596,7 +596,6 @@ int dwc3_drd_init(struct dwc3 *dwc)dwc3_drd_update (dwc); }else {dwc3_set_prtcap (dwc,DWC3_GCTL_PRTCAP_OTG ); - dwc->current_dr_role =DWC3_GCTL_PRTCAP_OTG ;/* use OTG block to get ID event */ irq =dwc3_otg_get_irq (dwc);
Signature · 1 line
2.18.0
Hi,
Quoted 4 lines · Chunfeng Yun
dwc3_set_prtcap()already setscurrent_dr_roleasDWC3_GCTL_PRTCAP_OTG, so remove the repeated one.Signed-off-by Chunfeng Yun <[email protected]>
looks correct to me:
Acked-by Felipe Balbi <[email protected]>
Signature · 1 line
balbi