* [PATCH linux-next] aio: Replace IS_ERR() with IS_ERR_VALUE()
@ 2022-10-20 11:50 yexingchen116
0 siblings, 0 replies; only message in thread
From: yexingchen116 @ 2022-10-20 11:50 UTC (permalink / raw)
To: viro; +Cc: bcrl, linux-fsdevel, linux-aio, linux-kernel, ye xingchen
From: ye xingchen <ye.xingchen@zte.com.cn>
Avoid type casts that are needed for IS_ERR() and use
IS_ERR_VALUE() instead.
Signed-off-by: ye xingchen <ye.xingchen@zte.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-10-20 11:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20 11:50 [PATCH linux-next] aio: Replace IS_ERR() with IS_ERR_VALUE() yexingchen116
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).