summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2023-06-02 17:47:43 +0800
committersakimisu <[email protected]>2023-06-02 19:06:48 +0800
commit66e95c9d81da342b1e185775adda65c994ed1da1 (patch)
tree51713411e85022595b04b2c3f6476169a9cc9749
parent16180bfc8e0ed7544f6c497c8a7c7de7ef02fd8a (diff)
remove ununsed code
-rw-r--r--port/dwc2/usb_hc_dwc2.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c
index 94d39d2b..acc7a0fa 100644
--- a/port/dwc2/usb_hc_dwc2.c
+++ b/port/dwc2/usb_hc_dwc2.c
@@ -275,13 +275,6 @@ static inline void dwc2_pipe_transfer(uint8_t ch_num, uint8_t ep_addr, uint32_t
USB_OTG_HC(ch_num)->HCCHAR &= ~USB_OTG_HCCHAR_ODDFRM;
USB_OTG_HC(ch_num)->HCCHAR |= (uint32_t)is_oddframe << 29;
- /* make sure to set the correct ep direction */
- if (ep_addr & 0x80) {
- tmpreg |= USB_OTG_HCCHAR_EPDIR;
- } else {
- tmpreg &= ~USB_OTG_HCCHAR_EPDIR;
- }
-
/* Set host channel enable */
tmpreg = USB_OTG_HC(ch_num)->HCCHAR;
tmpreg &= ~USB_OTG_HCCHAR_CHDIS;