From 68bee1b8478bb6f7e404931d4dcf2ffdf9f63902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Thu, 16 Feb 2017 17:35:28 +0100 Subject: [PATCH] flashparams: remove the locking stubs locking will be done in the params module --- .../systemlib/flashparams/flashparams.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/modules/systemlib/flashparams/flashparams.c b/src/modules/systemlib/flashparams/flashparams.c index cff1827045..3fd1042076 100644 --- a/src/modules/systemlib/flashparams/flashparams.c +++ b/src/modules/systemlib/flashparams/flashparams.c @@ -70,22 +70,6 @@ struct param_wbuf_s { bool unsaved; }; - -/** lock the parameter store */ -static void -param_lock(void) -{ - //do {} while (sem_wait(¶m_sem) != 0); -} - -/** unlock the parameter store */ -static void -param_unlock(void) -{ - //sem_post(¶m_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) {