s390/ap_bus: Cocci spatch "ptr_ret.spatch"
authorThomas Meyer <thomas@m3y3r.de>
Sat, 1 Jun 2013 09:51:13 +0000 (11:51 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Jun 2013 19:10:18 +0000 (21:10 +0200)
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c

index 9de41aa148965088c693815fe6ce165d5689414e..0b116a49ee53a17818f9abf050b5c9691d3497e9 100644 (file)
@@ -1795,7 +1795,7 @@ static int ap_poll_thread_start(void)
        mutex_lock(&ap_poll_thread_mutex);
        if (!ap_poll_kthread) {
                ap_poll_kthread = kthread_run(ap_poll_thread, NULL, "appoll");
-               rc = IS_ERR(ap_poll_kthread) ? PTR_ERR(ap_poll_kthread) : 0;
+               rc = PTR_RET(ap_poll_kthread);
                if (rc)
                        ap_poll_kthread = NULL;
        }
@@ -1904,7 +1904,7 @@ int __init ap_module_init(void)
 
        /* Create /sys/devices/ap. */
        ap_root_device = root_device_register("ap");
-       rc = IS_ERR(ap_root_device) ? PTR_ERR(ap_root_device) : 0;
+       rc = PTR_RET(ap_root_device);
        if (rc)
                goto out_bus;