diff options
author | Deming Wang <wangdeming@inspur.com> | 2022-11-04 03:38:18 +0100 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-12-01 00:58:46 +0100 |
commit | 65917b538bcc4d8c0d8e199a6f7b7426acf13d58 (patch) | |
tree | fb3e5147bb65266e840c42a81804678828eefffd /mm | |
parent | mm: use pte markers for swap errors (diff) | |
download | linux-65917b538bcc4d8c0d8e199a6f7b7426acf13d58.tar.xz linux-65917b538bcc4d8c0d8e199a6f7b7426acf13d58.zip |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/zsmalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index d03941cace2c..b52b7bb88b52 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -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; } |