mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
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:
parent
15520a3f04
commit
65917b538b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue