flashparams: remove the locking stubs

locking will be done in the params module
This commit is contained in:
Beat Küng
2017-02-16 17:35:28 +01:00
committed by Lorenz Meier
parent 85f62f5da0
commit 68bee1b847
@@ -70,22 +70,6 @@ struct param_wbuf_s {
bool unsaved;
};
/** lock the parameter store */
static void
param_lock(void)
{
//do {} while (sem_wait(&param_sem) != 0);
}
/** unlock the parameter store */
static void
param_unlock(void)
{
//sem_post(&param_sem);
}
static int
param_export_internal(bool only_unsaved)
{
@@ -93,8 +77,6 @@ param_export_internal(bool only_unsaved)
struct bson_encoder_s encoder;
int result = -1;
param_lock();
/* Use realloc */
bson_encoder_init_buf(&encoder, NULL, 0);
@@ -165,7 +147,6 @@ param_export_internal(bool only_unsaved)
result = 0;
out:
param_unlock();
if (result == 0) {