Skip to contentSkip to conversation

zsmalloc-replace-is_err-with-is_err_value.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Dec 1, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: zsmalloc: replace IS_ERR() with IS_ERR_VALUE()
has been removed from the -mm tree. Its filename was
zsmalloc-replace-is_err-with-is_err_value.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Deming Wang <[email protected]>
Subject: zsmalloc: replace IS_ERR() with IS_ERR_VALUE()
Date: Thu, 3 Nov 2022 22:38:18 -0400

Avoid typecasts that are needed for IS_ERR() and use IS_ERR_VALUE() instead.

---

 mm/zsmalloc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/zsmalloc.c renamed from mm/zsmalloc.c~zsmalloc-replace-is_err-with-is_err_value +1 -1
@@ -387,7 +387,7 @@ static int zs_zpool_malloc(void *pool, s
 {
 	*handle = zs_malloc(pool, size, gfp);
 
-	if (IS_ERR((void *)(*handle)))
+	if (IS_ERR_VALUE(*handle))
 		return PTR_ERR((void *)*handle);
 	return 0;
 }

_

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