]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Remove redundant up() in stop_machine()
authorZhou Yingchao <yingchao.zhou@gmail.com>
Mon, 4 Dec 2006 12:58:06 +0000 (13:58 +0100)
committerAdrian Bunk <bunk@stusta.de>
Mon, 4 Dec 2006 12:58:06 +0000 (13:58 +0100)
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: Adrian Bunk <bunk@stusta.de>
kernel/stop_machine.c

index dcfb5d731466257f7f003ba5eb84083f0185d22c..51cacd111dbd8412c35a1d9578cfb3d7eaf86c6a 100644 (file)
@@ -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;
        }