X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Fmac_cfg_hdl.c;h=dac40baef26771251e3a401cd66c17ffe9eac15a;hb=df97420828852456256f46cfb7b921c12bd9285e;hp=6b09b9a4a40206fac246a96a80c35037d2e373bc;hpb=29d69003fa60ca371d31f79a474c9619f19648cd;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_cfg_hdl.c b/src/5gnrmac/mac_cfg_hdl.c index 6b09b9a4a..dac40baef 100644 --- a/src/5gnrmac/mac_cfg_hdl.c +++ b/src/5gnrmac/mac_cfg_hdl.c @@ -1058,11 +1058,6 @@ uint8_t MacSendStatsRspToDuApp(MacStatsRsp *statsRsp) DU_LOG("\nINFO --> MAC : MacSendStatsRspToDuApp: Sending Statistics Response to DU APP"); - /* Workaround : To skip corrupted memory, allocating a pointer that will - * remain unused */ - uint8_t *dummyPtr = NULLP; - MAC_ALLOC_SHRABL_BUF(dummyPtr, sizeof(uint8_t)); - MAC_ALLOC_SHRABL_BUF(macStatsRsp, sizeof(MacStatsRsp)); if(macStatsRsp == NULLP) { @@ -1084,8 +1079,6 @@ uint8_t MacSendStatsRspToDuApp(MacStatsRsp *statsRsp) } } - /* Workaround : Freeing the dummy pointer */ - MAC_FREE_SHRABL_BUF(MAC_MEM_REGION, MAC_POOL, dummyPtr, sizeof(uint8_t)); return ret; }