projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d79c420
)
command.c: Remove a useless use of the mmd lock.
author
Andre Noll
<maan@systemlinux.org>
Sat, 12 Apr 2008 17:22:08 +0000
(19:22 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Sat, 12 Apr 2008 17:22:08 +0000
(19:22 +0200)
command.c
patch
|
blob
|
history
diff --git
a/command.c
b/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: