diff options
author | Zhou Yingchao <yingchao.zhou@gmail.com> | 2006-12-04 13:58:06 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-12-04 13:58:06 +0100 |
commit | 4c3b882b6efbf091fdc0109a952844668d431e6a (patch) | |
tree | 44c0b5c3cb52acb989dc369dbf16f8133e4340ff | |
parent | dbb4a0ecfe7dc4c989985a23288c98b2e3c8ee0d (diff) | |
download | lwn-4c3b882b6efbf091fdc0109a952844668d431e6a.tar.gz lwn-4c3b882b6efbf091fdc0109a952844668d431e6a.zip |
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>
-rw-r--r-- | kernel/stop_machine.c | 1 |
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; } |