Browse Source

flashparams: remove the locking stubs

locking will be done in the params module
sbg
Beat Küng 8 years ago committed by Lorenz Meier
parent
commit
68bee1b847
  1. 19
      src/modules/systemlib/flashparams/flashparams.c

19
src/modules/systemlib/flashparams/flashparams.c

@ -70,22 +70,6 @@ struct param_wbuf_s { @@ -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) @@ -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) @@ -165,7 +147,6 @@ param_export_internal(bool only_unsaved)
result = 0;
out:
param_unlock();
if (result == 0) {

Loading…
Cancel
Save