Commit 4c3b882b authored by Zhou Yingchao's avatar Zhou Yingchao Committed by Adrian Bunk

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: default avatarZhou Yingchao <yingchao.zhou@gmail.com>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent dbb4a0ec
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment