Re: [PATCH] bcachefs: Fix -Wself-assign

From: Kent Overstreet
Date: Tue Sep 19 2023 - 16:54:00 EST


On Tue, Sep 19, 2023 at 01:38:31PM -0700, Nick Desaulniers wrote:
> Fixes the following observed error reported by Nathan on IRC.
>
> fs/bcachefs/io_misc.c:467:6: error: explicitly assigning value of
> variable of type 'int' to itself [-Werror,-Wself-assign]
> 467 | ret = ret;
> | ~~~ ^ ~~~
>
> Reported-by: Nathan Chancellor <nathan@xxxxxxxxxx>
> Signed-off-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>

Applied, thanks!