projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e106e4e
)
s390/sclp: replace PTR_RET with PTR_ERR_OR_ZERO
author
Duan Jiong
<duanj.fnst@cn.fujitsu.com>
Fri, 11 Apr 2014 11:39:06 +0000
(13:39 +0200)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Fri, 11 Apr 2014 11:53:40 +0000
(13:53 +0200)
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>
drivers/s390/char/sclp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/s390/char/sclp.c
b/drivers/s390/char/sclp.c
index 1990285296c6c4d669d7e79074f84e94e8a6c346..c316051d9bdaa4e8bd24f63e2601f9aa2925c597 100644
(file)
--- a/
drivers/s390/char/sclp.c
+++ b/
drivers/s390/char/sclp.c
@@
-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;