aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2013-06-01 05:57:23 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-06-26 15:10:20 -0400
commit735e849f725ba2c4587e7551f9985d3cc3bb5c0e (patch)
treec4d65638c9e0c42455816a70e447024058053c5f /drivers/s390
parent82a7b9557751febc7303ec8df8c69cb9652cbe65 (diff)
s390/net: 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/net/claw.c2
-rw-r--r--drivers/s390/net/ctcm_main.c2
-rw-r--r--drivers/s390/net/lcs.c2
-rw-r--r--drivers/s390/net/qeth_core_main.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c
index 83bc9c5fa0c1..fd7b3bd80789 100644
--- a/drivers/s390/net/claw.c
+++ b/drivers/s390/net/claw.c
@@ -3348,7 +3348,7 @@ static int __init claw_init(void)
3348 } 3348 }
3349 CLAW_DBF_TEXT(2, setup, "init_mod"); 3349 CLAW_DBF_TEXT(2, setup, "init_mod");
3350 claw_root_dev = root_device_register("claw"); 3350 claw_root_dev = root_device_register("claw");
3351 ret = IS_ERR(claw_root_dev) ? PTR_ERR(claw_root_dev) : 0; 3351 ret = PTR_RET(claw_root_dev);
3352 if (ret) 3352 if (ret)
3353 goto register_err; 3353 goto register_err;
3354 ret = ccw_driver_register(&claw_ccw_driver); 3354 ret = ccw_driver_register(&claw_ccw_driver);
diff --git a/drivers/s390/net/ctcm_main.c b/drivers/s390/net/ctcm_main.c
index 676f12049a36..70b3a023100e 100644
--- a/drivers/s390/net/ctcm_main.c
+++ b/drivers/s390/net/ctcm_main.c
@@ -1837,7 +1837,7 @@ static int __init ctcm_init(void)
1837 if (ret) 1837 if (ret)
1838 goto out_err; 1838 goto out_err;
1839 ctcm_root_dev = root_device_register("ctcm"); 1839 ctcm_root_dev = root_device_register("ctcm");
1840 ret = IS_ERR(ctcm_root_dev) ? PTR_ERR(ctcm_root_dev) : 0; 1840 ret = PTR_RET(ctcm_root_dev);
1841 if (ret) 1841 if (ret)
1842 goto register_err; 1842 goto register_err;
1843 ret = ccw_driver_register(&ctcm_ccw_driver); 1843 ret = ccw_driver_register(&ctcm_ccw_driver);
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c
index c645dc9e98af..f404f55b3191 100644
--- a/drivers/s390/net/lcs.c
+++ b/drivers/s390/net/lcs.c
@@ -2441,7 +2441,7 @@ __init lcs_init_module(void)
2441 if (rc) 2441 if (rc)
2442 goto out_err; 2442 goto out_err;
2443 lcs_root_dev = root_device_register("lcs"); 2443 lcs_root_dev = root_device_register("lcs");
2444 rc = IS_ERR(lcs_root_dev) ? PTR_ERR(lcs_root_dev) : 0; 2444 rc = PTR_RET(lcs_root_dev);
2445 if (rc) 2445 if (rc)
2446 goto register_err; 2446 goto register_err;
2447 rc = ccw_driver_register(&lcs_ccw_driver); 2447 rc = ccw_driver_register(&lcs_ccw_driver);
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index 6cd0fc1b203a..70ce6b6fce3b 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -5705,7 +5705,7 @@ static int __init qeth_core_init(void)
5705 if (rc) 5705 if (rc)
5706 goto out_err; 5706 goto out_err;
5707 qeth_core_root_dev = root_device_register("qeth"); 5707 qeth_core_root_dev = root_device_register("qeth");
5708 rc = IS_ERR(qeth_core_root_dev) ? PTR_ERR(qeth_core_root_dev) : 0; 5708 rc = PTR_RET(qeth_core_root_dev);
5709 if (rc) 5709 if (rc)
5710 goto register_err; 5710 goto register_err;
5711 qeth_core_header_cache = kmem_cache_create("qeth_hdr", 5711 qeth_core_header_cache = kmem_cache_create("qeth_hdr",