aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King2021-02-10 20:00:07 +0000
committerJens Axboe2021-02-10 13:28:41 -0700
commit4a245479c2312e6b51862c21af134d4191ab9cf7 (patch)
tree74ad87d15c790c0f0fb40d3c470662d2d781977b
parent34343786ecc5ff493ca4d1f873b4386759ba52ee (diff)
io_uring: remove redundant initialization of variable ret
The variable ret is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Fixes: b63534c41e20 ("io_uring: re-issue block requests that failed because of resources") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--fs/io_uring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 9ed79509f389..f730af32c17a 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -2796,7 +2796,7 @@ static void io_complete_rw_common(struct kiocb *kiocb, long res,
static bool io_resubmit_prep(struct io_kiocb *req)
{
struct iovec inline_vecs[UIO_FASTIOV], *iovec = inline_vecs;
- int rw, ret = -ECANCELED;
+ int rw, ret;
struct iov_iter iter;
/* already prepared */