s390/cmm: Removed useless label
authorAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Wed, 13 Mar 2013 19:46:08 +0000 (21:46 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Apr 2013 12:07:27 +0000 (14:07 +0200)
Rewrote conditional statement and eliminated the out_kthread label.

Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/cmm.c

index 479e94282910199d8268efd05b5f0e2be0d4526e..9d84a1feefef0e57005f6a31ae50079ebec3a15b 100644 (file)
@@ -458,12 +458,10 @@ static int __init cmm_init(void)
        if (rc)
                goto out_pm;
        cmm_thread_ptr = kthread_run(cmm_thread, NULL, "cmmthread");
-       rc = IS_ERR(cmm_thread_ptr) ? PTR_ERR(cmm_thread_ptr) : 0;
-       if (rc)
-               goto out_kthread;
-       return 0;
+       if (!IS_ERR(cmm_thread_ptr))
+               return 0;
 
-out_kthread:
+       rc = PTR_ERR(cmm_thread_ptr);
        unregister_pm_notifier(&cmm_power_notifier);
 out_pm:
        unregister_oom_notifier(&cmm_oom_nb);