Skip to content

Commit

Permalink
s390/sclp: replace PTR_RET with PTR_ERR_OR_ZERO
Browse files Browse the repository at this point in the history
PTR_RET is deprecated. Do not recommend its usage anymore.
Use PTR_ERR_OR_ZERO instead.

Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Duan Jiong authored and Martin Schwidefsky committed Apr 11, 2014
1 parent e106e4e commit 83d8e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/char/sclp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ static __init int sclp_initcall(void)
return rc;

sclp_pdev = platform_device_register_simple("sclp", -1, NULL, 0);
rc = PTR_RET(sclp_pdev);
rc = PTR_ERR_OR_ZERO(sclp_pdev);
if (rc)
goto fail_platform_driver_unregister;

Expand Down

0 comments on commit 83d8e25

Please sign in to comment.