Skip to contentSkip to conversation

mm-slob-remove-an-unnecessary-check-for-__gfp_zero.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 16, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/slob.c: remove an unnecessary check for __GFP_ZERO
has been removed from the -mm tree. Its filename was
mm-slob-remove-an-unnecessary-check-for-__gfp_zero.patch

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

------------------------------------------------------
From: Miles Chen <[email protected]>
Subject: mm/slob.c: remove an unnecessary check for __GFP_ZERO

Current flow guarantees a valid pointer when handling the __GFP_ZERO case. So remove the unnecessary NULL pointer check.

---

 mm/slob.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/slob.c renamed from mm/slob.c~mm-slob-remove-an-unnecessary-check-for-__gfp_zero +1 -1
diff -puN mm/slob.c~mm-slob-remove-an-unnecessary-check-for-__gfp_zero mm/slob.c
@@ -330,7 +330,7 @@ static void *slob_alloc(size_t size, gfp
 		BUG_ON(!b);
 		spin_unlock_irqrestore(&slob_lock, flags);
 	}
-	if (unlikely((gfp & __GFP_ZERO) && b))
+	if (unlikely(gfp & __GFP_ZERO))
 		memset(b, 0, size);
 	return b;
 }

_

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

dma-debug-fix-incorrect-pfn-calculation.patch checkpatch-support-function-pointers-for-unnamed-function-definition-arguments.patch