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 1f9dd85..b63eef0 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: