From 0228212677da799b95a2b342bbff6675040aadcb Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 12 Apr 2008 19:22:08 +0200 Subject: [PATCH] command.c: Remove a useless use of the mmd lock. --- command.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/command.c b/command.c index 1f9dd857..b63eef04 100644 --- a/command.c +++ b/command.c @@ -177,12 +177,8 @@ static int check_sender_args(int argc, char * const * argv, struct sender_comman if (!subcmds[i]) return -E_COMMAND_SYNTAX; scd->cmd_num = i; - mutex_lock(mmd_mutex); - if (!senders[scd->sender_num].client_cmds[scd->cmd_num]) { - mutex_unlock(mmd_mutex); + if (!senders[scd->sender_num].client_cmds[scd->cmd_num]) return -E_SENDER_CMD; - } - mutex_unlock(mmd_mutex); switch (scd->cmd_num) { case SENDER_ON: case SENDER_OFF: -- 2.39.5