[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20221020115010.400289-1-ye.xingchen@zte.com.cn>
Date: Thu, 20 Oct 2022 11:50:10 +0000
From: yexingchen116@...il.com
To: viro@...iv.linux.org.uk
Cc: bcrl@...ck.org, linux-fsdevel@...r.kernel.org, linux-aio@...ck.org,
linux-kernel@...r.kernel.org, ye xingchen <ye.xingchen@....com.cn>
Subject: [PATCH linux-next] aio: Replace IS_ERR() with IS_ERR_VALUE()
From: ye xingchen <ye.xingchen@....com.cn>
Avoid type casts that are needed for IS_ERR() and use
IS_ERR_VALUE() instead.
Signed-off-by: ye xingchen <ye.xingchen@....com.cn>
---
fs/aio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/aio.c b/fs/aio.c
index 5b2ff20ad322..978bbfb8dcac 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -556,7 +556,7 @@ static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events)
PROT_READ | PROT_WRITE,
MAP_SHARED, 0, &unused, NULL);
mmap_write_unlock(mm);
- if (IS_ERR((void *)ctx->mmap_base)) {
+ if (IS_ERR_VALUE(ctx->mmap_base)) {
ctx->mmap_size = 0;
aio_free_ring(ctx);
return -ENOMEM;
--
2.25.1
Powered by blists - more mailing lists