s390/net: Cocci spatch "ptr_ret.spatch"
authorThomas Meyer <thomas@m3y3r.de>
Sat, 1 Jun 2013 09:57:23 +0000 (11:57 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 26 Jun 2013 19:10:20 +0000 (21:10 +0200)
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>
drivers/s390/net/claw.c
drivers/s390/net/ctcm_main.c
drivers/s390/net/lcs.c
drivers/s390/net/qeth_core_main.c

index 83bc9c5fa0c190885656955458b342d2265362f9..fd7b3bd807896556d0743660069aff8a44c3e072 100644 (file)
@@ -3348,7 +3348,7 @@ static int __init claw_init(void)
        }
        CLAW_DBF_TEXT(2, setup, "init_mod");
        claw_root_dev = root_device_register("claw");
-       ret = IS_ERR(claw_root_dev) ? PTR_ERR(claw_root_dev) : 0;
+       ret = PTR_RET(claw_root_dev);
        if (ret)
                goto register_err;
        ret = ccw_driver_register(&claw_ccw_driver);
index 676f12049a3693056d58ba216b0f1c3eeacdf92c..70b3a023100ef769180d8234f2ac39c3caa91232 100644 (file)
@@ -1837,7 +1837,7 @@ static int __init ctcm_init(void)
        if (ret)
                goto out_err;
        ctcm_root_dev = root_device_register("ctcm");
-       ret = IS_ERR(ctcm_root_dev) ? PTR_ERR(ctcm_root_dev) : 0;
+       ret = PTR_RET(ctcm_root_dev);
        if (ret)
                goto register_err;
        ret = ccw_driver_register(&ctcm_ccw_driver);
index c645dc9e98af83359d13b4975221a4d609ace853..f404f55b31917a3daac4ea9787e130786ad6b3b8 100644 (file)
@@ -2441,7 +2441,7 @@ __init lcs_init_module(void)
        if (rc)
                goto out_err;
        lcs_root_dev = root_device_register("lcs");
-       rc = IS_ERR(lcs_root_dev) ? PTR_ERR(lcs_root_dev) : 0;
+       rc = PTR_RET(lcs_root_dev);
        if (rc)
                goto register_err;
        rc = ccw_driver_register(&lcs_ccw_driver);
index 6cd0fc1b203a2c6e8147dc37d980933ff9b7e89f..70ce6b6fce3be1648efcc9936136bc8980317c6c 100644 (file)
@@ -5705,7 +5705,7 @@ static int __init qeth_core_init(void)
        if (rc)
                goto out_err;
        qeth_core_root_dev = root_device_register("qeth");
-       rc = IS_ERR(qeth_core_root_dev) ? PTR_ERR(qeth_core_root_dev) : 0;
+       rc = PTR_RET(qeth_core_root_dev);
        if (rc)
                goto register_err;
        qeth_core_header_cache = kmem_cache_create("qeth_hdr",