avoid a cppcheck warning

This commit is contained in:
Laurent THOMAS
2025-09-09 18:04:26 +02:00
committed by Robert Schmidt
parent 5d118cf170
commit 3190ad47b1
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -1229,7 +1229,8 @@ void init_eNB()
LOG_I(PHY,"Initializing eNB %d CC_id %d\n",inst,CC_id);
LOG_I(PHY,"Initializing eNB %d CC_id %d\n",inst,CC_id);
LOG_I(PHY,"Registering with MAC interface module\n");
AssertFatal((eNB->if_inst = IF_Module_init(inst))!=NULL,"Cannot register interface");
eNB->if_inst = IF_Module_init(inst);
AssertFatal(eNB->if_inst, "Cannot register interface");
eNB->if_inst->schedule_response = schedule_response;
eNB->if_inst->PHY_config_req = phy_config_request;
eNB->if_inst->PHY_config_update_sib2_req = phy_config_update_sib2_request;
+2
View File
@@ -1993,6 +1993,7 @@ int get_narrowband_index(int N_RB_UL,int rb) {
default:
AssertFatal(1==0,"Impossible N_RB_UL %d\n",N_RB_UL);
return 0;
break;
}
}
@@ -2128,6 +2129,7 @@ int get_first_rb_in_narrowband(int N_RB_UL,
default:
AssertFatal(1==0,"Impossible N_RB_UL %d\n",N_RB_UL);
return 0;
break;
}
}