diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2021-03-09 14:30:41 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-03-10 07:28:43 -0700 |
commit | 5199328a0d415b3e372633096b1b92f36b8ac9e5 (patch) | |
tree | 5240212bf1122964ccb15ca2cfad5c0814770675 /fs/io_uring.c | |
parent | 93e68e036c2fc1ce18e784418e4e19975a5882b4 (diff) | |
download | lwn-5199328a0d415b3e372633096b1b92f36b8ac9e5.tar.gz lwn-5199328a0d415b3e372633096b1b92f36b8ac9e5.zip |
io_uring: remove unneeded variable 'ret'
Fix the following coccicheck warning:
./fs/io_uring.c:8984:5-8: Unneeded variable: "ret". Return "0" on line
8998
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1615271441-33649-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 0f18e4a7bd08..6325f32ef6a3 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -9022,7 +9022,6 @@ static unsigned long io_uring_nommu_get_unmapped_area(struct file *file, static int io_sqpoll_wait_sq(struct io_ring_ctx *ctx) { - int ret = 0; DEFINE_WAIT(wait); do { @@ -9036,7 +9035,7 @@ static int io_sqpoll_wait_sq(struct io_ring_ctx *ctx) } while (!signal_pending(current)); finish_wait(&ctx->sqo_sq_wait, &wait); - return ret; + return 0; } static int io_get_ext_arg(unsigned flags, const void __user *argp, size_t *argsz, |