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:
Родитель
15520a3f04
Коммит
65917b538b
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче