summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYingchao Zhou <yingchao.zhou@gmail.com>2006-08-27 01:23:46 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2006-09-08 14:51:39 -0700
commiteeae03f8f7842d4a981e54b5a2a76b5dbacee82e (patch)
tree8bc29c72cb94b70933c076b07b07792e8ef2b242
parent1a9546a59f5792d2baeedb6b290a9449e3c43f9e (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: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-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;
}