Re: [PATCH] io_uring: Fix use of uninitialized ret in io_eventfd_register()
From: Jens Axboe
Date: Tue Feb 08 2022 - 08:58:06 EST
On Mon, 7 Feb 2022 09:24:11 -0700, Nathan Chancellor wrote:
> Clang warns:
>
> fs/io_uring.c:9396:9: warning: variable 'ret' is uninitialized when used here [-Wuninitialized]
> return ret;
> ^~~
> fs/io_uring.c:9373:13: note: initialize the variable 'ret' to silence this warning
> int fd, ret;
> ^
> = 0
> 1 warning generated.
>
> [...]
Applied, thanks!
[1/1] io_uring: Fix use of uninitialized ret in io_eventfd_register()
commit: 4c65723081332607ca331072b0f8a90189e2e447
Best regards,
--
Jens Axboe