Skip to content

Commit 5896f8f

Browse files
Duan JiongMartin Schwidefsky
authored andcommitted
s390/sclp_cmd: 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 <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
1 parent 83d8e25 commit 5896f8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/s390/char/sclp_cmd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ static int __init sclp_detect_standby_memory(void)
515515
if (rc)
516516
goto out;
517517
sclp_pdev = platform_device_register_simple("sclp_mem", -1, NULL, 0);
518-
rc = PTR_RET(sclp_pdev);
518+
rc = PTR_ERR_OR_ZERO(sclp_pdev);
519519
if (rc)
520520
goto out_driver;
521521
sclp_add_standby_memory();

0 commit comments

Comments
 (0)