diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-06-01 11:51:13 +0200 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-06-26 21:10:18 +0200 |
commit | ba8da2138e07670a3be35c276fd20effbfb507c3 (patch) | |
tree | 2ac35ad172167476802f657389d0f45a16cc90f6 /drivers/s390 | |
parent | 60d081c5865c4b2fee257b51fea3d3aaf07f5584 (diff) | |
download | linux-ba8da2138e07670a3be35c276fd20effbfb507c3.tar.gz linux-ba8da2138e07670a3be35c276fd20effbfb507c3.tar.bz2 linux-ba8da2138e07670a3be35c276fd20effbfb507c3.zip |
s390/ap_bus: Cocci spatch "ptr_ret.spatch"
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/crypto/ap_bus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/crypto/ap_bus.c b/drivers/s390/crypto/ap_bus.c index 9de41aa14896..0b116a49ee53 100644 --- a/drivers/s390/crypto/ap_bus.c +++ b/drivers/s390/crypto/ap_bus.c @@ -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; |