summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorZhou Yingchao <yingchao.zhou@gmail.com>2006-12-04 13:58:06 +0100
committerAdrian Bunk <bunk@stusta.de>2006-12-04 13:58:06 +0100
commit4c3b882b6efbf091fdc0109a952844668d431e6a (patch)
tree44c0b5c3cb52acb989dc369dbf16f8133e4340ff /kernel
parentdbb4a0ecfe7dc4c989985a23288c98b2e3c8ee0d (diff)
Remove redundant up() in stop_machine()
An up() is called in kernel/stop_machine.c on failure, and also in the caller (unconditionally). Signed-off-by: Zhou Yingchao <yingchao.zhou@gmail.com> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/stop_machine.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c
index dcfb5d731466..51cacd111dbd 100644
--- a/kernel/stop_machine.c
+++ b/kernel/stop_machine.c
@@ -111,7 +111,6 @@ static int stop_machine(void)
/* If some failed, kill them all. */
if (ret < 0) {
stopmachine_set_state(STOPMACHINE_EXIT);
- up(&stopmachine_mutex);
return ret;
}