mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 11:49:32 +00:00
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>
This commit is contained in:
parent
16dc2c409c
commit
d37556eb1c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue