Re: [PATCH v8 03/10] spmi: Remove unneeded goto in spmi_device_add() error path

From: Stephen Boyd

Date: Thu Jan 15 2026 - 21:03:34 EST


Quoting AngeloGioacchino Del Regno (2026-01-14 03:27:35)
> If any error happens during device_add() just return inside of the
> conditional, as the goto path doesn't do anything else if not just
> returning.
>
> While at it, to improve readability, also change this function to
> explicitly return 0 (for success) at the end.
>
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>
> ---

Acked-by: Stephen Boyd <sboyd@xxxxxxxxxx>