]> git.tue.mpg.de Git - paraslash.git/commitdiff
command.c: Remove a useless use of the mmd lock.
authorAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 17:22:08 +0000 (19:22 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 12 Apr 2008 17:22:08 +0000 (19:22 +0200)
command.c

index 1f9dd857e689530cc6e7ee6fa1c125aee73b8031..b63eef040994e8b26e78c2ca868eccb5984e580f 100644 (file)
--- 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: