diff options
author | Yingchao Zhou <yingchao.zhou@gmail.com> | 2006-08-27 04:23:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-08-27 14:01:31 -0400 |
commit | 4edb9a143e31d2e191c199262226e1a5923ff8f7 (patch) | |
tree | c876dfb150124613dfb0564781de4fb2bf424d7c /kernel/stop_machine.c | |
parent | ecdc63948763586e101108dfe1ba316ec069fe39 (diff) |
[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>
Diffstat (limited to 'kernel/stop_machine.c')
-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) | |||
111 | /* If some failed, kill them all. */ | 111 | /* If some failed, kill them all. */ |
112 | if (ret < 0) { | 112 | if (ret < 0) { |
113 | stopmachine_set_state(STOPMACHINE_EXIT); | 113 | stopmachine_set_state(STOPMACHINE_EXIT); |
114 | up(&stopmachine_mutex); | ||
115 | return ret; | 114 | return ret; |
116 | } | 115 | } |
117 | 116 | ||