Skip to content

Commit f23f549

Browse files
committed
fix warning
Signed-off-by: sakumisu <[email protected]>
1 parent e530d86 commit f23f549

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

port/dwc2/usb_hc_dwc2.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,8 +1304,9 @@ static void dwc2_port_irq_handler(struct usbh_bus *bus)
13041304
{
13051305
__IO uint32_t hprt0, hprt0_dup, regval;
13061306

1307+
#if defined(CONFIG_USB_HS)
13071308
(void)regval;
1308-
1309+
#endif
13091310
/* Handle Host Port Interrupts */
13101311
hprt0 = USB_OTG_HPRT;
13111312
hprt0_dup = USB_OTG_HPRT;

0 commit comments

Comments
 (0)