valgrind memory leak fixes
[o-du/l2.git] / src / 5gnrmac / mac_ue_mgr.c
index 5f246ec..0f38987 100644 (file)
@@ -638,7 +638,6 @@ void fillPucchPowerControl(PucchPowerControl *macPwrCtrl, SchPucchPowerControl *
 
 uint8_t fillOtherPucchFormatCfg(uint8_t pucchFormat, PucchFormatCfg *macFormatCfg, SchPucchCfg *schPucchCfg)
 {
-   uint8_t ret = ROK;
 
    switch(pucchFormat)
    {
@@ -702,6 +701,7 @@ uint8_t fillOtherPucchFormatCfg(uint8_t pucchFormat, PucchFormatCfg *macFormatCf
          DU_LOG("\nERROR --> MAC : Invalid Format Cfg %d in fillInitialUlBwpPucchCfg()", pucchFormat);
          return RFAILED;
    }
+   return ROK;
 }
 
 /*******************************************************************