parameters: remove unnecessary param_get_system_default_value() locking

This commit is contained in:
Daniel Agar 2021-04-23 11:59:34 -04:00 committed by Beat Küng
parent 3664d9e4ce
commit c266c3e43a
1 changed files with 0 additions and 2 deletions

View File

@ -625,7 +625,6 @@ param_get_system_default_value(param_t param, void *default_val)
} }
int ret = PX4_OK; int ret = PX4_OK;
param_lock_reader();
switch (param_type(param)) { switch (param_type(param)) {
case PARAM_TYPE_INT32: case PARAM_TYPE_INT32:
@ -641,7 +640,6 @@ param_get_system_default_value(param_t param, void *default_val)
break; break;
} }
param_unlock_reader();
return ret; return ret;
} }