diff options
author | Frank Blaschka <frank.blaschka@de.ibm.com> | 2014-04-28 12:05:11 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-04-28 21:44:10 +0400 |
commit | d37556eb1cb76b5e2320fc1ea94dfab29fce878c (patch) | |
tree | c1cf1f61b1f0633f7a7911666cf6cbdeb9f2596e /drivers/s390 | |
parent | 16dc2c409cd94e7b3412eee06f704d0315901ddb (diff) | |
download | linux-d37556eb1cb76b5e2320fc1ea94dfab29fce878c.tar.xz |
ctc: 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>
Diffstat (limited to 'drivers/s390')
-rw-r--r-- | drivers/s390/net/ctcm_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/ctcm_main.c b/drivers/s390/net/ctcm_main.c index 70b3a023100e..03b6ad035577 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) if (ret) goto out_err; ctcm_root_dev = root_device_register("ctcm"); - ret = PTR_RET(ctcm_root_dev); + ret = PTR_ERR_OR_ZERO(ctcm_root_dev); if (ret) goto register_err; ret = ccw_driver_register(&ctcm_ccw_driver); |