removed some cppcheck errors

This commit is contained in:
Raymond Knopp
2021-01-25 10:36:54 +01:00
parent 9f52fd4ae7
commit bbe6db03dd
3 changed files with 5 additions and 9 deletions
+1 -1
View File
@@ -872,7 +872,7 @@ void init_gNB_proc(int inst) {
gNB->threadPool = (tpool_t*)malloc(sizeof(tpool_t));
gNB->respDecode = (notifiedFIFO_t*) malloc(sizeof(notifiedFIFO_t));
int numCPU = sysconf(_SC_NPROCESSORS_ONLN);
uint32_t num_threads_pusch;
uint32_t num_threads_pusch=2;
paramdef_t PUSCHThreads[] = NUM_THREADS_DESC;
config_get( PUSCHThreads,sizeof(PUSCHThreads)/sizeof(paramdef_t),NULL);
int threadCnt = min(numCPU, num_threads_pusch);