Re: [PATCH] bcachefs: Simplify code in bch2_dev_alloc()

From: Kent Overstreet
Date: Sat Oct 12 2024 - 13:31:03 EST


On Sat, Oct 12, 2024 at 03:59:02PM GMT, Youling Tang wrote:
> From: Youling Tang <tangyouling@xxxxxxxxxx>
>
> - Remove unnecessary variable 'ret'.
> - Remove unnecessary bch2_dev_free() operations.
>
> Signed-off-by: Youling Tang <tangyouling@xxxxxxxxxx>

the 'goto err' style is more readable when you're staring at tons of
code