summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>2014-04-28 10:05:07 +0200
committerDavid S. Miller <davem@davemloft.net>2014-04-28 13:44:09 -0400
commit9262c6c29927c73b1e7db364defcd6044a7e32a3 (patch)
treeef8b7300616f580de031f30136eb2b9646149625 /drivers/s390
parent6274edc5755d19b300492609474df3e2c86a593e (diff)
downloadlinux-9262c6c29927c73b1e7db364defcd6044a7e32a3.tar.gz
linux-9262c6c29927c73b1e7db364defcd6044a7e32a3.tar.bz2
linux-9262c6c29927c73b1e7db364defcd6044a7e32a3.zip
qeth: 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: Duan Jiong <duanj.fnst@cn.fujitsu.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/net/qeth_core_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index 22470a3b182f..f5bd4229b192 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -5824,7 +5824,7 @@ static int __init qeth_core_init(void)
if (rc)
goto out_err;
qeth_core_root_dev = root_device_register("qeth");
- rc = PTR_RET(qeth_core_root_dev);
+ rc = PTR_ERR_OR_ZERO(qeth_core_root_dev);
if (rc)
goto register_err;
qeth_core_header_cache = kmem_cache_create("qeth_hdr",