diff options
author | Thomas Meyer <thomas@m3y3r.de> | 2013-06-01 13:58:09 +0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-06-26 23:10:22 +0400 |
commit | 4bdb613ff45ef5f2848584b250f8a65f6d6c5755 (patch) | |
tree | fbc7c7be6d53ee5eade0c51ef5d1357c02d98dd4 /drivers/s390/char/sclp.c | |
parent | 5eba9bb80f0452a595cd6ddac7dacfdd5e1986cd (diff) | |
download | linux-4bdb613ff45ef5f2848584b250f8a65f6d6c5755.tar.xz |
s390/drivers: 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/char/sclp.c')
-rw-r--r-- | drivers/s390/char/sclp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp.c b/drivers/s390/char/sclp.c index 97319d692b04..3e4fb4e858da 100644 --- a/drivers/s390/char/sclp.c +++ b/drivers/s390/char/sclp.c @@ -1170,7 +1170,7 @@ static __init int sclp_initcall(void) return rc; sclp_pdev = platform_device_register_simple("sclp", -1, NULL, 0); - rc = IS_ERR(sclp_pdev) ? PTR_ERR(sclp_pdev) : 0; + rc = PTR_RET(sclp_pdev); if (rc) goto fail_platform_driver_unregister; |