[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221104023818.1728-1-wangdeming@inspur.com>
Date: Thu, 3 Nov 2022 22:38:18 -0400
From: Deming Wang <wangdeming@...pur.com>
To: <minchan@...nel.org>, <ngupta@...are.org>,
<akpm@...ux-foundation.org>
CC: <senozhatsky@...omium.org>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>, Deming Wang <wangdeming@...pur.com>
Subject: [PATCH] zsmalloc: replace IS_ERR() with IS_ERR_VALUE()
Avoid typecasts that are needed for IS_ERR() and use IS_ERR_VALUE()
instead.
Signed-off-by: Deming Wang <wangdeming@...pur.com>
---
mm/zsmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index a40c548520d3..1322f3615067 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -379,7 +379,7 @@ static int zs_zpool_malloc(void *pool, size_t size, gfp_t gfp,
{
*handle = zs_malloc(pool, size, gfp);
- if (IS_ERR((void *)(*handle)))
+ if (IS_ERR_VALUE(*handle))
return PTR_ERR((void *)*handle);
return 0;
}
--
2.27.0
Powered by blists - more mailing lists