X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fcm_mblk.c;h=97a291328be55b28c1b41eaff33539b8b9b60c23;hb=4d45b914f9e94203603d3b9fdbcb1aad361301dd;hp=3413ca8f76961279a5e629f1c912d5949a587c8f;hpb=6b44407d464a5a4e060999255233a7cfe78bb0fa;p=o-du%2Fl2.git diff --git a/src/cm/cm_mblk.c b/src/cm/cm_mblk.c index 3413ca8f7..97a291328 100644 --- a/src/cm/cm_mblk.c +++ b/src/cm/cm_mblk.c @@ -119,7 +119,7 @@ Ptr *ptr; /* Location to place allocated event ptr */ printf("eventSize [%ld] greater than maxBlkSize [%ld]\n", evntSize, maxBlkSize); #endif - RETVALUE(RFAILED); + return RFAILED; } #endif @@ -134,7 +134,7 @@ Ptr *ptr; /* Location to place allocated event ptr */ (Size)(maxBlkSize + sizeof(CmMemList))) != ROK) #endif /* SS_LOCKLESS_MEMORY */ - RETVALUE(RFAILED); + return RFAILED; /* Reset the contents */ cmMemset((U8 *)allocPtr, (U8 )0, @@ -180,7 +180,7 @@ Ptr *ptr; /* Location to place allocated event ptr */ *ptr = (Ptr) ((PTR)allocPtr + sizeof(CmMemList)); cb->runPtr = ((PTR)(*ptr) + evntSize); - RETVALUE(ROK); + return ROK; } /* End of cmAllocEvnt */ @@ -289,7 +289,7 @@ Ptr *allocPtr; /* location to place pointer */ *allocPtr = (Ptr) cb->runPtr; cb->memAllocated += size; cb->runPtr += size; - RETVALUE(ROK); + return ROK; } } @@ -305,7 +305,7 @@ Ptr *allocPtr; /* location to place pointer */ (Data **)&(cb->initPtr), (Size)(blkSize + sizeof(CmMemList)) ) != ROK) #endif /* SS_LOCKLESS_MEMORY */ - RETVALUE(RFAILED); + return RFAILED; /* Reset the contents */ /* Initialise above allocated structure */ @@ -335,7 +335,7 @@ Ptr *allocPtr; /* location to place pointer */ *allocPtr = (Ptr) ((PTR)cb->initPtr + sizeof(CmMemList)); cb->runPtr = ((PTR)(*allocPtr) + size); - RETVALUE(ROK); + return ROK; } /* End of cmGetMem */ @@ -385,7 +385,7 @@ Ptr *ptr; /* Location to place allocated event ptr */ /* Validation check */ if( evntSize > maxBlkSize) - RETVALUE(RFAILED); + return RFAILED; /* Allocate memory for the first Memory Chunk */ /* Allocated memory should be maxBlkSize + sizeof(CmMemList) */ @@ -398,7 +398,7 @@ Ptr *ptr; /* Location to place allocated event ptr */ (Size)(maxBlkSize + sizeof(CmMemList))) != ROK) #endif /* SS_LOCKLESS_MEMORY */ - RETVALUE(RFAILED); + return RFAILED; /* Reset the contents */ cmMemset((U8 *)allocPtr, (U8 )0, @@ -444,7 +444,7 @@ Ptr *ptr; /* Location to place allocated event ptr */ *ptr = (Ptr) ((PTR)allocPtr + sizeof(CmMemList)); cb->runPtr = ((PTR)(*ptr) + evntSize); - RETVALUE(ROK); + return ROK; } /* End of cmAllocEvntNoInit */ @@ -514,7 +514,7 @@ Ptr *allocPtr; /* location to place pointer */ // (PTR)(size) ); cb->memAllocated += size; cb->runPtr += size; - RETVALUE(ROK); + return ROK; } } @@ -530,7 +530,7 @@ Ptr *allocPtr; /* location to place pointer */ (Data **)&(cb->initPtr), (Size)(blkSize + sizeof(CmMemList)) ) != ROK) #endif /* SS_LOCKLESS_MEMORY */ - RETVALUE(RFAILED); + return RFAILED; /* Reset the contents */ /* Initialise above allocated structure */ @@ -559,7 +559,7 @@ Ptr *allocPtr; /* location to place pointer */ *allocPtr = (Ptr) ((PTR)cb->initPtr + sizeof(CmMemList)); cb->runPtr = ((PTR)(*allocPtr) + size); - RETVALUE(ROK); + return ROK; } /* End of cmGetMemNoInit */