Commit 65917b53 authored by Deming Wang's avatar Deming Wang Committed by Andrew Morton

zsmalloc: replace IS_ERR() with IS_ERR_VALUE()

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

Link: https://lkml.kernel.org/r/20221104023818.1728-1-wangdeming@inspur.comSigned-off-by: default avatarDeming Wang <wangdeming@inspur.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 15520a3f
......@@ -387,7 +387,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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment