Skip to contentSkip to conversation

zswap-improve-a-size-determination-in-zswap_frontswap_init.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: improve a size determination in zswap_frontswap_init()
has been removed from the -mm tree. Its filename was
zswap-improve-a-size-determination-in-zswap_frontswap_init.patch

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

------------------------------------------------------
From: Markus Elfring <[email protected]>
Subject: mm/zswap.c: improve a size determination in zswap_frontswap_init()

Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention.

---

 mm/zswap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/zswap.c renamed from mm/zswap.c~zswap-improve-a-size-determination-in-zswap_frontswap_init +1 -1
diff -puN mm/zswap.c~zswap-improve-a-size-determination-in-zswap_frontswap_init mm/zswap.c
@@ -1156,7 +1156,7 @@ static void zswap_frontswap_init(unsigne
 {
 	struct zswap_tree *tree;
 
-	tree = kzalloc(sizeof(struct zswap_tree), GFP_KERNEL);
+	tree = kzalloc(sizeof(*tree), GFP_KERNEL);
 	if (!tree) {
 		pr_err("alloc failed, zswap disabled for swap type %d\n", type);
 		return;

_

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