Skip to contentSkip to conversation

zswap-delete-an-error-message-for-a-failed-memory-allocation-in-zswap_pool_create.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 7, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/zswap.c: delete an error message for a failed memory allocation in zswap_pool_create()
has been removed from the -mm tree. Its filename was
zswap-delete-an-error-message-for-a-failed-memory-allocation-in-zswap_pool_create.patch

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

------------------------------------------------------
From: Markus Elfring <[email protected]>
Subject: mm/zswap.c: delete an error message for a failed memory allocation in zswap_pool_create()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

---

 mm/zswap.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
mm/zswap.c renamed from mm/zswap.c~zswap-delete-an-error-message-for-a-failed-memory-allocation-in-zswap_pool_create +1 -3
diff -puN mm/zswap.c~zswap-delete-an-error-message-for-a-failed-memory-allocation-in-zswap_pool_create mm/zswap.c
@@ -515,10 +515,8 @@ static struct zswap_pool *zswap_pool_cre
 	}
 
 	pool = kzalloc(sizeof(*pool), GFP_KERNEL);
-	if (!pool) {
-		pr_err("pool alloc failed\n");
+	if (!pool)
 		return NULL;
-	}
 
 	/* unique name for each pool specifically required by zsmalloc */
 	snprintf(name, 38, "zswap%x", atomic_inc_return(&zswap_pools_count));

_

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