summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakimisu <[email protected]>2022-12-11 20:28:03 +0800
committersakimisu <[email protected]>2022-12-11 20:28:03 +0800
commitfc9afb54057fefef8df70e43714965e254d8703b (patch)
tree7157ebf861a3db46a78bc4b3a85e05f996d46867
parent843af28b2bfe4e669aa9f9dc51bdf8bc4f661da7 (diff)
fix warning
-rw-r--r--port/musb/usb_hc_musb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/port/musb/usb_hc_musb.c b/port/musb/usb_hc_musb.c
index 6f320953..3e265c78 100644
--- a/port/musb/usb_hc_musb.c
+++ b/port/musb/usb_hc_musb.c
@@ -367,7 +367,7 @@ static int usbh_reset_port(const uint8_t port)
static uint8_t usbh_get_port_speed(const uint8_t port)
{
- uint8_t speed;
+ uint8_t speed = USB_SPEED_UNKNOWN;
if (HWREGB(USB_BASE + MUSB_POWER_OFFSET) & USB_POWER_HSMODE)
speed = USB_SPEED_HIGH;
@@ -436,7 +436,6 @@ int usb_hc_init(void)
int usbh_roothub_control(struct usb_setup_packet *setup, uint8_t *buf)
{
- __IO uint32_t hprt0;
uint8_t nports;
uint8_t port;
uint32_t status;