Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/sclp: 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 <duanj.fnst@cn.fujitsu.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

authored by

Duan Jiong and committed by
Martin Schwidefsky
83d8e252 e106e4ea

+1 -1
+1 -1
drivers/s390/char/sclp.c
··· 1252 1252 return rc; 1253 1253 1254 1254 sclp_pdev = platform_device_register_simple("sclp", -1, NULL, 0); 1255 - rc = PTR_RET(sclp_pdev); 1255 + rc = PTR_ERR_OR_ZERO(sclp_pdev); 1256 1256 if (rc) 1257 1257 goto fail_platform_driver_unregister; 1258 1258