Commit fb554dc6 authored by Guido Casati's avatar Guido Casati Committed by Guido Casati

Simplified and clang-formatted RCconfig_nr_parallel

parent 6e7ea5ce
......@@ -2040,11 +2040,12 @@ int RCconfig_NR_NG(MessageDef *msg_p, uint32_t i) {
return 0;
}
int RCconfig_nr_parallel(void) {
int RCconfig_nr_parallel(void)
{
extern char *parallel_config;
extern char *worker_config;
paramdef_t ThreadParams[] = THREAD_CONF_DESC;
paramlist_def_t THREADParamList = {THREAD_CONFIG_STRING_THREAD_STRUCT,NULL,0};
paramlist_def_t THREADParamList = {THREAD_CONFIG_STRING_THREAD_STRUCT, NULL, 0};
config_getlist(config_get_if(), &THREADParamList, NULL, 0, NULL);
char *default_parallel_conf = "PARALLEL_RU_L1_TRX_SPLIT";
......@@ -2052,18 +2053,17 @@ int RCconfig_nr_parallel(void) {
char *parallel_conf = default_parallel_conf;
char *worker_conf = default_worker_conf;
if(THREADParamList.numelt>0) {
if (THREADParamList.numelt > 0) {
config_getlist(config_get_if(), &THREADParamList, ThreadParams, sizeofArray(ThreadParams), NULL);
parallel_conf = *(THREADParamList.paramarray[0][THREAD_PARALLEL_IDX].strptr);
}
if(THREADParamList.numelt>0) {
config_getlist(config_get_if(), &THREADParamList, ThreadParams, sizeofArray(ThreadParams), NULL);
worker_conf = *(THREADParamList.paramarray[0][THREAD_WORKER_IDX].strptr);
}
if(parallel_config == NULL) set_parallel_conf(parallel_conf);
if(worker_config == NULL) set_worker_conf(worker_conf);
if (parallel_config == NULL)
set_parallel_conf(parallel_conf);
if (worker_config == NULL)
set_worker_conf(worker_conf);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment