chore: static code analysis

This commit is contained in:
sakumisu
2024-09-18 18:36:17 +08:00
parent 171b36e766
commit 02340e0f44
18 changed files with 113 additions and 97 deletions

View File

@@ -651,6 +651,12 @@ int usbh_deinitialize(uint8_t busid)
{
struct usbh_bus *bus;
if (busid >= CONFIG_USBHOST_MAX_BUS) {
USB_LOG_ERR("bus overflow\r\n");
while (1) {
}
}
bus = &g_usbhost_bus[busid];
usbh_hub_deinitialize(bus);