diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-06-15 16:34:24 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-15 23:37:51 +0200 |
commit | b1b2fc3574a6a94a1ab90271a7620345c39dc01f (patch) | |
tree | 548065804e957a53dc6bbdc283075240c74f8954 /fs/io-wq.c | |
parent | io_uring: Fix incorrect sizeof operator for copy_from_user call (diff) | |
download | linux-b1b2fc3574a6a94a1ab90271a7620345c39dc01f.tar.xz linux-b1b2fc3574a6a94a1ab90271a7620345c39dc01f.zip |
io-wq: remove redundant initialization of variable ret
The variable ret is being initialized with a value that is never read, the
assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210615143424.60449-1-colin.king@canonical.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io-wq.c')
-rw-r--r-- | fs/io-wq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/io-wq.c b/fs/io-wq.c index 2c37776c0280..e221aaab585c 100644 --- a/fs/io-wq.c +++ b/fs/io-wq.c @@ -896,7 +896,7 @@ static int io_wqe_hash_wake(struct wait_queue_entry *wait, unsigned mode, struct io_wq *io_wq_create(unsigned bounded, struct io_wq_data *data) { - int ret = -ENOMEM, node; + int ret, node; struct io_wq *wq; if (WARN_ON_ONCE(!data->free_work || !data->do_work)) |