X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fkwu.c;h=7bbe952112593d5882e79e2fdaab90f40a534f79;hb=3235ecfc7414aa0b72d0ad50db63ae8b5626045b;hp=d9c6408e643058c008cd54b78cb0ce3f6ca83a97;hpb=997e3f26d55352586a1d4d0c46c41a98452af88a;p=o-du%2Fl2.git diff --git a/src/cm/kwu.c b/src/cm/kwu.c index d9c6408e6..7bbe95211 100755 --- a/src/cm/kwu.c +++ b/src/cm/kwu.c @@ -519,16 +519,6 @@ Buffer * mBuf; #else cmPkKwuDatIndInfo( (datInd), mBuf); #endif /* ERRCLASS & ERRCLS_ADD_RES */ -#if 0 - /*Commenting out the below block as no Memory Allocation happens - * in Protocol. This code will be removed once testing is done */ - if (SPutStaticBuffer(pst->region, pst->pool, (Data *)datInd, - sizeof(KwuDatIndInfo),SS_SHARABLE_MEMORY) != ROK) - { - SPutMsg(mBuf); - RETVALUE(RFAILED); - } -#endif } break; default: @@ -715,14 +705,6 @@ KwuDiscSduInfo* discSdu; #else cmPkKwuDiscSduInfo( (discSdu), mBuf); #endif /* ERRCLASS & ERRCLS_ADD_RES */ -#if 0 - if (SPutSBuf(pst->region, pst->pool, (Data *)discSdu, - sizeof(KwuDiscSduInfo)) != ROK) - { - SPutMsg(mBuf); - RETVALUE(RFAILED); - } -#endif break; } } @@ -1301,22 +1283,6 @@ Buffer *mBuf; break; case KWU_SEL_LC: { -#if 0 - /*This will be removed once the testing is done on all platforms */ - if((ret1 = SGetStaticBuffer(pst->region, pst->pool, (Data **)&datReq,\ - sizeof(KwuDatReqInfo),SS_SHARABLE_MEMORY)) != ROK) - { -#if (ERRCLASS & ERRCLS_ADD_RES) - /*MBUF_FIXX*/ - SLogError(pst->srcEnt, pst->srcInst, pst->srcProcId, - __FILE__, __LINE__, (ErrCls)ERRCLS_ADD_RES, - (ErrVal)EKWU026, (ErrVal)0, "SGetMsg() failed"); - -#endif /* ERRCLASS & ERRCLS_ADD_RES */ - RETVALUE(ret1); - } - -#endif /* Allocate the memory statically as there is no free * in RLC */ datReq = &datReqTmp;