projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a983b5e
)
mm/page_owner.c: use PTR_ERR_OR_ZERO()
author
Vasyl Gomonovych
<
[email protected]
>
Thu, 1 Feb 2018 00:16:48 +0000
(16:16 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 1 Feb 2018 01:18:36 +0000
(17:18 -0800)
Fix ptr_ret.cocci warnings:
mm/page_owner.c:639:1-3: WARNING: PTR_ERR_OR_ZERO can be used
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Generated by: scripts/coccinelle/api/ptr_ret.cocci
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Vasyl Gomonovych <
[email protected]
>
Acked-by: Vlastimil Babka <
[email protected]
>
Acked-by: Michal Hocko <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/page_owner.c
patch
|
blob
|
history
diff --git
a/mm/page_owner.c
b/mm/page_owner.c
index 270a8219ccd03b0099c48bd267075a7b0d8eadd6..06a0055f45a6b5ba6660f66d0ed71ffbdcbc2f46 100644
(file)
--- a/
mm/page_owner.c
+++ b/
mm/page_owner.c
@@
-635,9
+635,7
@@
static int __init pageowner_init(void)
dentry = debugfs_create_file("page_owner", S_IRUSR, NULL,
NULL, &proc_page_owner_operations);
- if (IS_ERR(dentry))
- return PTR_ERR(dentry);
- return
0
;
+ return
PTR_ERR_OR_ZERO(dentry)
;
}
late_initcall(pageowner_init)