summaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/sclp_cmd.c
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-06-01 11:58:09 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-06-26 21:10:22 +0200
commit4bdb613ff45ef5f2848584b250f8a65f6d6c5755 (patch)
treefbc7c7be6d53ee5eade0c51ef5d1357c02d98dd4 /drivers/s390/char/sclp_cmd.c
parent5eba9bb80f0452a595cd6ddac7dacfdd5e1986cd (diff)
downloadblackbird-op-linux-4bdb613ff45ef5f2848584b250f8a65f6d6c5755.tar.gz
blackbird-op-linux-4bdb613ff45ef5f2848584b250f8a65f6d6c5755.zip
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_cmd.c')
-rw-r--r--drivers/s390/char/sclp_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/sclp_cmd.c b/drivers/s390/char/sclp_cmd.c
index 657b0348579c..8cd34bf644b3 100644
--- a/drivers/s390/char/sclp_cmd.c
+++ b/drivers/s390/char/sclp_cmd.c
@@ -668,7 +668,7 @@ static int __init sclp_detect_standby_memory(void)
if (rc)
goto out;
sclp_pdev = platform_device_register_simple("sclp_mem", -1, NULL, 0);
- rc = IS_ERR(sclp_pdev) ? PTR_ERR(sclp_pdev) : 0;
+ rc = PTR_RET(sclp_pdev);
if (rc)
goto out_driver;
sclp_add_standby_memory();
OpenPOWER on IntegriCloud