]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: remove redundant initialization of variable ret
authorColin Ian King <colin.king@canonical.com>
Wed, 10 Feb 2021 20:00:07 +0000 (20:00 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Feb 2021 20:28:41 +0000 (13:28 -0700)
commit8bb19d2a5edd02c17d5236d7adcc22f5aaa3e143
tree74ad87d15c790c0f0fb40d3c470662d2d781977b
parent51d998f12e2944c33c4b70bc2a7799ab2d9d4395
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: be6d4627241c ("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>
fs/io_uring.c