Commit d37556eb authored by Frank Blaschka's avatar Frank Blaschka Committed by David S. Miller

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: default avatarFrank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 16dc2c40
...@@ -1837,7 +1837,7 @@ static int __init ctcm_init(void) ...@@ -1837,7 +1837,7 @@ static int __init ctcm_init(void)
if (ret) if (ret)
goto out_err; goto out_err;
ctcm_root_dev = root_device_register("ctcm"); ctcm_root_dev = root_device_register("ctcm");
ret = PTR_RET(ctcm_root_dev); ret = PTR_ERR_OR_ZERO(ctcm_root_dev);
if (ret) if (ret)
goto register_err; goto register_err;
ret = ccw_driver_register(&ctcm_ccw_driver); ret = ccw_driver_register(&ctcm_ccw_driver);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment