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.com
Signed-off-by: Deming Wang <wangdeming@inspur.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
Deming Wang 2022-11-03 22:38:18 -04:00 committed by Andrew Morton
parent 15520a3f04
commit 65917b538b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}