From 5cd66c69c6eb83ee7033c969bc0c74d19e802142 Mon Sep 17 00:00:00 2001 From: Johann Fischer Date: Tue, 24 Nov 2020 22:55:41 +0100 Subject: [PATCH] drivers: usb_dc_nrfx: remove k_mem_pool_free for IN endpoints Usage of mem_pool for all IN endpoints was removed in commit b3c63425a062 ("usb: driver: Reduce Endpoint buffer pool.") Remove also k_mem_pool_free for all IN endpoints. Fixes: #30213 Signed-off-by: Johann Fischer --- drivers/usb/device/usb_dc_nrfx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/device/usb_dc_nrfx.c b/drivers/usb/device/usb_dc_nrfx.c index 616e1677aad..76da67e008f 100644 --- a/drivers/usb/device/usb_dc_nrfx.c +++ b/drivers/usb/device/usb_dc_nrfx.c @@ -690,7 +690,6 @@ static void eps_ctx_uninit(void) for (i = 0U; i < CFG_EPIN_CNT; i++) { ep_ctx = in_endpoint_ctx(i); __ASSERT_NO_MSG(ep_ctx); - k_mem_pool_free(&ep_ctx->buf.block); memset(ep_ctx, 0, sizeof(*ep_ctx)); } @@ -704,7 +703,6 @@ static void eps_ctx_uninit(void) if (CFG_EP_ISOIN_CNT) { ep_ctx = in_endpoint_ctx(NRF_USBD_EPIN(8)); __ASSERT_NO_MSG(ep_ctx); - k_mem_pool_free(&ep_ctx->buf.block); memset(ep_ctx, 0, sizeof(*ep_ctx)); }