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

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: default avatarFrank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d66cb37e
...@@ -3348,7 +3348,7 @@ static int __init claw_init(void) ...@@ -3348,7 +3348,7 @@ static int __init claw_init(void)
} }
CLAW_DBF_TEXT(2, setup, "init_mod"); CLAW_DBF_TEXT(2, setup, "init_mod");
claw_root_dev = root_device_register("claw"); claw_root_dev = root_device_register("claw");
ret = PTR_RET(claw_root_dev); ret = PTR_ERR_OR_ZERO(claw_root_dev);
if (ret) if (ret)
goto register_err; goto register_err;
ret = ccw_driver_register(&claw_ccw_driver); ret = ccw_driver_register(&claw_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