Skip to contentSkip to conversation

mm-page_owner-use-ptr_err_or_zero.patch removed from -mm tree

merged [email protected] 1 participant 1 message Feb 1, 2018

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/page_owner.c: use PTR_ERR_OR_ZERO()
has been removed from the -mm tree. Its filename was
mm-page_owner-use-ptr_err_or_zero.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Vasyl Gomonovych <[email protected]>
Subject: mm/page_owner.c: use PTR_ERR_OR_ZERO()

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

---

 mm/page_owner.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
mm/page_owner.c renamed from mm/page_owner.c~mm-page_owner-use-ptr_err_or_zero +1 -3
diff -puN mm/page_owner.c~mm-page_owner-use-ptr_err_or_zero 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)

_

Patches currently in -mm which might be from [email protected] are