From: Andre Noll Date: Sat, 12 Apr 2008 17:22:08 +0000 (+0200) Subject: command.c: Remove a useless use of the mmd lock. X-Git-Tag: v0.3.3~76 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=0228212677da799b95a2b342bbff6675040aadcb;p=paraslash.git command.c: Remove a useless use of the mmd lock. --- 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: