From: Yingchao Zhou Date: Sun, 27 Aug 2006 08:23:46 +0000 (-0700) Subject: Remove redundant up() in stop_machine() X-Git-Tag: v2.6.17.12~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeae03f8f7842d4a981e54b5a2a76b5dbacee82e;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c index dcfb5d7314662..51cacd111dbd8 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; }