diff options
| author | sakumisu <[email protected]> | 2025-06-14 21:44:54 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-06-14 21:44:54 +0800 |
| commit | 9d29fece51608bf9390e187b78734a14b48dcdf8 (patch) | |
| tree | 8d05638ca0c5f69af40815353db2421a240ef0d3 | |
| parent | 8df2be2a5237c193ba12d1dec80b0bd0523cd557 (diff) | |
fix warning
Signed-off-by: sakumisu <[email protected]>
| -rw-r--r-- | port/dwc2/usb_hc_dwc2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/port/dwc2/usb_hc_dwc2.c b/port/dwc2/usb_hc_dwc2.c index c94cd091..26486761 100644 --- a/port/dwc2/usb_hc_dwc2.c +++ b/port/dwc2/usb_hc_dwc2.c @@ -273,8 +273,6 @@ static inline void dwc2_chan_splt_init(struct usbh_bus *bus, uint8_t ch_num) static void dwc2_chan_init(struct usbh_bus *bus, uint8_t ch_num, uint8_t devaddr, uint8_t ep_addr, uint8_t ep_type, uint16_t ep_mps, uint8_t speed) { - uint32_t regval; - /* Clear old interrupt conditions for this host channel. */ USB_OTG_HC((uint32_t)ch_num)->HCINT = 0xFFFFFFFFU; @@ -1306,6 +1304,8 @@ static void dwc2_port_irq_handler(struct usbh_bus *bus) { __IO uint32_t hprt0, hprt0_dup, regval; + (void)regval; + /* Handle Host Port Interrupts */ hprt0 = USB_OTG_HPRT; hprt0_dup = USB_OTG_HPRT; |
