Skip to content

Commit 9d29fec

Browse files
committed
fix warning
Signed-off-by: sakumisu <[email protected]>
1 parent 8df2be2 commit 9d29fec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

port/dwc2/usb_hc_dwc2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,6 @@ static inline void dwc2_chan_splt_init(struct usbh_bus *bus, uint8_t ch_num)
273273

274274
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)
275275
{
276-
uint32_t regval;
277-
278276
/* Clear old interrupt conditions for this host channel. */
279277
USB_OTG_HC((uint32_t)ch_num)->HCINT = 0xFFFFFFFFU;
280278

@@ -1306,6 +1304,8 @@ static void dwc2_port_irq_handler(struct usbh_bus *bus)
13061304
{
13071305
__IO uint32_t hprt0, hprt0_dup, regval;
13081306

1307+
(void)regval;
1308+
13091309
/* Handle Host Port Interrupts */
13101310
hprt0 = USB_OTG_HPRT;
13111311
hprt0_dup = USB_OTG_HPRT;

0 commit comments

Comments
 (0)