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)
commit4a245479c2312e6b51862c21af134d4191ab9cf7
tree74ad87d15c790c0f0fb40d3c470662d2d781977b
parent34343786ecc5ff493ca4d1f873b4386759ba52ee
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>
fs/io_uring.c