[PATCH] fs: aio: Replace IS_ERR() with IS_ERR_VALUE()
| Newsgroups | gmane.linux.kernel.aio.general |
|---|---|
| Message-ID | <[email protected]> |
From: Feng Wei <[email protected]> Avoid type casts that are needed for IS_ERR() and use IS_ERR_VALUE() instead. Signed-off-by: Feng Wei <[email protected]> Signed-off-by: Shao Mingyin <[email protected]> --- fs/aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/aio.c b/fs/aio.c index 7b976b564cfc..837ff83f2808 100644 --- a/fs/aio.c +++ b/fs/aio.c @@ -553,7 +553,7 @@ static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events) PROT_READ | PROT_WRITE, MAP_SHARED, 0, 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 -- To unsubscribe, send a message with 'unsubscribe linux-aio' in the body to [email protected]. For more info on Linux AIO, see: http://www.kvack.org/aio/ Don't email: <a href=mailto:"[email protected]">[email protected]</a>