projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdd1dc3
)
io-wq: remove redundant initialization of variable ret
author
Colin Ian King
<colin.king@canonical.com>
Tue, 15 Jun 2021 14:34:24 +0000
(15:34 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 15 Jun 2021 21:37:51 +0000
(15:37 -0600)
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>
fs/io-wq.c
patch
|
blob
|
history
diff --git
a/fs/io-wq.c
b/fs/io-wq.c
index 2c37776c028075698ec0ae8e70e84b59e30b1824..e221aaab585cb49b610c65069823919bb9dfe186 100644
(file)
--- 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))