summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Blaschka2014-04-28 10:05:10 +0200
committerDavid S. Miller2014-04-28 19:44:10 +0200
commit16dc2c409cd94e7b3412eee06f704d0315901ddb (patch)
tree77a25a6cc4a843fd838657f317d4e04cad454d35
parentqeth: Add new priority queueing options (diff)
downloadkernel-qcow2-linux-16dc2c409cd94e7b3412eee06f704d0315901ddb.tar.gz
kernel-qcow2-linux-16dc2c409cd94e7b3412eee06f704d0315901ddb.tar.xz
kernel-qcow2-linux-16dc2c409cd94e7b3412eee06f704d0315901ddb.zip
claw: replace PTR_RET with PTR_ERR_OR_ZERO
PTR_RET is deprecated. Do not recommend its usage anymore. Use PTR_ERR_OR_ZERO instead. Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/s390/net/claw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c
index fd7b3bd80789..d837c3c5330f 100644
--- a/drivers/s390/net/claw.c
+++ b/drivers/s390/net/claw.c
@@ -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 = PTR_RET(claw_root_dev);
+ ret = PTR_ERR_OR_ZERO(claw_root_dev);
if (ret)
goto register_err;
ret = ccw_driver_register(&claw_ccw_driver);