X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Frg_lim.c;h=df56929e147b360fbef9536d49cf58ca910888f8;hb=5d74fef7c9fe6b65a965ceac6bfe812872dab323;hp=9eccb08595ff33365c7ce409780022ec130e423c;hpb=e7b5eab0138956edeae768a021be476f4a7a807f;p=o-du%2Fl2.git diff --git a/src/5gnrmac/rg_lim.c b/src/5gnrmac/rg_lim.c index 9eccb0859..df56929e1 100755 --- a/src/5gnrmac/rg_lim.c +++ b/src/5gnrmac/rg_lim.c @@ -102,11 +102,10 @@ SpId spId; RgLowSapCb *tfuSap; Pst pst; - TRC2(rgLIMTfuBndReq); /* Get the lower SAP control block from the layer control block. */ tfuSap = &(rgCb[inst].tfuSap); - (Void)cmMemcpy ((U8*)&pst, (U8*)&(tfuSap->sapCfg.sapPst), sizeof(Pst)); + memcpy (&pst, &(tfuSap->sapCfg.sapPst), sizeof(Pst)); if((ret = RgLiTfuBndReq (&pst, suId, spId)) != ROK) { RLOG0(L_ERROR,"Call to RgLiTfuBndReq() failed"); @@ -151,11 +150,10 @@ Reason reason; RgLowSapCb *tfuSap; Pst pst; - TRC2(rgLIMTfuUbndReq); /* Get the lower SAP control block from the layer control block. */ tfuSap = &(rgCb[inst].tfuSap); - cmMemcpy ((U8*)&pst, (U8*)&(tfuSap->sapCfg.sapPst), sizeof(Pst)); + memcpy (&pst, &(tfuSap->sapCfg.sapPst), sizeof(Pst)); if((ret = RgLiTfuUbndReq (&pst, tfuSap->sapCfg.spId, reason)) != ROK) { RLOG0(L_ERROR,"Call to RgLiTfuUbndReq() failed"); @@ -200,7 +198,6 @@ U8 status; S16 ret; RgLowSapCb *tfuSap; - TRC3(RgLiTfuBndCfm); RG_IS_INST_VALID(pst->dstInst); @@ -244,7 +241,6 @@ PRIVATE S16 rgLIMValidateSap(inst,suId) { RgLowSapCb *tfuSap; - TRC2(rgLIMValidateSap) tfuSap = &(rgCb[inst].tfuSap); @@ -293,7 +289,6 @@ PRIVATE Void rgLIMUtlFreeDatIndEvnt(datInd, error) TfuDatInfo *datInfo; CmLList *node; - TRC2(rgLIMUtlFreeDatIndEvnt); /* Steps of freeing up the TfuDatInd. * 1. loop through the datIndLst and free up all the buffers. * 2. free up the whole event @@ -347,7 +342,6 @@ TfuDatIndInfo *datInd; S16 ret; VOLATILE U32 startTime=0; - TRC3(RgLiTfuDatInd); // printf("5GTF:: DatindRcvd\n"); @@ -416,7 +410,6 @@ PRIVATE Void rgLIMUtlFreeDatReqEvnt(datReq, error) CmLList *node; U8 i; - TRC2(rgLIMUtlFreeDatReqEvnt); /* Steps of freeing up the TfuDatReq. * 1. Free the bch buffer. * 2. loop through the pdus list and free up all the buffers. @@ -481,7 +474,6 @@ TfuDatReqInfo *datReq; S16 ret; RgLowSapCb *tfuSap; - TRC2(rgLIMTfuDatReq) /* Get the lower SAP control block from the layer control block. */ tfuSap = &(rgCb[inst].tfuSap); @@ -543,7 +535,6 @@ TfuDelDatReqInfo *delDatReq; S16 ret; RgLowSapCb *tfuSap; - TRC2(rgLIMTfuDelDatReq) /* Get the lower SAP control block from the layer control block. */ tfuSap = &(rgCb[inst].tfuSap); @@ -594,7 +585,6 @@ Pst *pst; SuId suId; #endif { - TRC3(RgLiTfuNonRtInd); #ifdef NO_ERRCLS if (rgLIMValidateSap (pst->dstInst - RG_INST_START, suId) != ROK)