From d56a8786825758ebfb3257bc228bbbbe1ff09e49 Mon Sep 17 00:00:00 2001 From: kanoi Date: Wed, 20 Aug 2014 20:09:23 +1000 Subject: [PATCH] ckdb - remove extra unnecessary lock --- src/ckdb.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index 2b53baae..a7ba17e0 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -1336,11 +1336,7 @@ static void log_queue_message(char *msg) K_WLOCK(logqueue_free); lq_item = k_unlink_head(logqueue_free); - K_WUNLOCK(logqueue_free); - DATA_LOGQUEUE(lq_item)->msg = strdup(msg); - - K_WLOCK(logqueue_free); k_add_tail(logqueue_store, lq_item); K_WUNLOCK(logqueue_free); }