[PATCH] 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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Yingchao Zhou 2006-08-27 01:23:46 -07:00 committed by Linus Torvalds
parent ecdc639487
commit 4edb9a143e
1 changed files with 0 additions and 1 deletions

View File

@ -111,7 +111,6 @@ static int stop_machine(void)
/* If some failed, kill them all. */ /* If some failed, kill them all. */
if (ret < 0) { if (ret < 0) {
stopmachine_set_state(STOPMACHINE_EXIT); stopmachine_set_state(STOPMACHINE_EXIT);
up(&stopmachine_mutex);
return ret; return ret;
} }