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

Stephen Boyd sboyd at kernel.org
Thu Jan 15 18:03:32 PST 2026


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 at collabora.com>
> ---

Acked-by: Stephen Boyd <sboyd at kernel.org>



More information about the linux-phy mailing list