Commit 50fb507a authored by Colin Ian King's avatar Colin Ian King Committed by Laibin Qiu
Browse files

io_uring: remove redundant initialization of variable ret

mainline inclusion
from mainline-v5.12-rc1
commit 4a245479
category: bugfix
bugzilla: 186136, https://gitee.com/openeuler/kernel/issues/I4RM1D


CVE: NA

-------------------------------------------------

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: b63534c4 ("io_uring: re-issue block requests that failed because of resources")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
conflict:
        fs/io_uring.c
Signed-off-by: default avatarLaibin Qiu <qiulaibin@huawei.com>
Reviewed-by: default avatarZhang Yi <yi.zhang@huawei.com>
parent 7448b91d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment