Merge "[Epic-ID: ODUHIGH-402][Task-ID: ODUHIGH-418] Harq feature changes"
[o-du/l2.git] / src / cm / cm_llist.c
index 1cc4092..e8c0251 100644 (file)
@@ -370,6 +370,32 @@ CmLListCp *list2               /*-- node to be added --*/
    return;
 } /*-- end of cmLListCatLList --*/
 
+
+/*--
+  *
+  *       Fun:   cmLListDeleteLList
+  *
+  *       Desc:  delete a linked list
+  *
+  *       Ret:   None
+  *
+  *       Notes: None
+  *
+  *       File:  cm_llist.c
+  *
+  --*/
+Void cmLListDeleteLList
+(
+CmLListCp *list              /*-- list control point --*/
+)
+{
+   while(list->count)
+   {
+      cmLListDelFrm(list, list->first);
+   }
+   return;
+}
+
 /**********************************************************************
          End of file
 **********************************************************************/