aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-06-01 05:58:09 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-06-26 15:10:22 -0400
commit4bdb613ff45ef5f2848584b250f8a65f6d6c5755 (patch)
treefbc7c7be6d53ee5eade0c51ef5d1357c02d98dd4 /drivers/s390
parent5eba9bb80f0452a595cd6ddac7dacfdd5e1986cd (diff)
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')
-rw-r--r--drivers/s390/char/sclp.c2
-rw-r--r--drivers/s390/char/sclp_cmd.c2
-rw-r--r--drivers/s390/char/tape_class.c2
3 files changed, 3 insertions, 3 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)
1170 return rc; 1170 return rc;
1171 1171
1172 sclp_pdev = platform_device_register_simple("sclp", -1, NULL, 0); 1172 sclp_pdev = platform_device_register_simple("sclp", -1, NULL, 0);
1173 rc = IS_ERR(sclp_pdev) ? PTR_ERR(sclp_pdev) : 0; 1173 rc = PTR_RET(sclp_pdev);
1174 if (rc) 1174 if (rc)
1175 goto fail_platform_driver_unregister; 1175 goto fail_platform_driver_unregister;
1176 1176
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)
668 if (rc) 668 if (rc)
669 goto out; 669 goto out;
670 sclp_pdev = platform_device_register_simple("sclp_mem", -1, NULL, 0); 670 sclp_pdev = platform_device_register_simple("sclp_mem", -1, NULL, 0);
671 rc = IS_ERR(sclp_pdev) ? PTR_ERR(sclp_pdev) : 0; 671 rc = PTR_RET(sclp_pdev);
672 if (rc) 672 if (rc)
673 goto out_driver; 673 goto out_driver;
674 sclp_add_standby_memory(); 674 sclp_add_standby_memory();
diff --git a/drivers/s390/char/tape_class.c b/drivers/s390/char/tape_class.c
index 54b3c79203f5..91c3c642c76e 100644
--- a/drivers/s390/char/tape_class.c
+++ b/drivers/s390/char/tape_class.c
@@ -77,7 +77,7 @@ struct tape_class_device *register_tape_dev(
77 tcd->class_device = device_create(tape_class, device, 77 tcd->class_device = device_create(tape_class, device,
78 tcd->char_device->dev, NULL, 78 tcd->char_device->dev, NULL,
79 "%s", tcd->device_name); 79 "%s", tcd->device_name);
80 rc = IS_ERR(tcd->class_device) ? PTR_ERR(tcd->class_device) : 0; 80 rc = PTR_RET(tcd->class_device);
81 if (rc) 81 if (rc)
82 goto fail_with_cdev; 82 goto fail_with_cdev;
83 rc = sysfs_create_link( 83 rc = sysfs_create_link(