diff --git a/src/class/video/video_device.c b/src/class/video/video_device.c index 4e2f53bdc7..76fe4782c1 100644 --- a/src/class/video/video_device.c +++ b/src/class/video/video_device.c @@ -542,7 +542,8 @@ static bool _negotiate_streaming_parameters(videod_streaming_interface_t const * tusb_desc_cs_video_fmt_t const *fmt = _find_desc_format(tu_desc_next(vs), end, fmtnum); tusb_desc_cs_video_frm_t const *frm = _find_desc_frame(tu_desc_next(fmt), end, frmnum); - uint_fast32_t interval, interval_ms; + uint_fast32_t interval = 0; + uint_fast32_t interval_ms = 0; switch (request) { case VIDEO_REQUEST_GET_MAX: { diff --git a/src/portable/synopsys/dwc2/dcd_dwc2.c b/src/portable/synopsys/dwc2/dcd_dwc2.c index 020db70bf6..5bccde7d25 100644 --- a/src/portable/synopsys/dwc2/dcd_dwc2.c +++ b/src/portable/synopsys/dwc2/dcd_dwc2.c @@ -674,10 +674,10 @@ static bool dcd_edpt_counter_available(uint8_t rhport, uint8_t dir) static bool dcd_edpt_counter_release(uint8_t rhport, uint8_t dir) { if (dir) { - TU_ASSERT(dwc2_ep_counters[rhport].active_in == 0); // Check if number of opened EPs is not zero + TU_ASSERT(dwc2_ep_counters[rhport].active_in != 0); // Check if number of opened EPs is not zero dwc2_ep_counters[rhport].active_in--; // Decrease endpoint counter } else { - TU_ASSERT(dwc2_ep_counters[rhport].active_out == 0); + TU_ASSERT(dwc2_ep_counters[rhport].active_out != 0); dwc2_ep_counters[rhport].active_out--; } return true;