mirror of
https://github.com/keirf/greaseweazle-firmware.git
synced 2025-10-31 11:06:44 -07:00
DWC OTG: Fix an assertion check on rx buffer allocation
This commit is contained in:
@@ -287,7 +287,7 @@ static void dwc_otg_configure_ep(uint8_t epnr, uint8_t type, uint32_t size)
|
||||
* Check we aren't trying to map it to multiple endpoints. */
|
||||
ep->rx = NULL;
|
||||
for (i = 0; i < conf_nr_ep; i++)
|
||||
ASSERT(ep->rx != rx_bufn);
|
||||
ASSERT(eps[i].rx != rx_bufn);
|
||||
ep->rx = rx_bufn;
|
||||
ep->rx_nr = ARRAY_SIZE(rx_bufn);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user