diff options
| author | AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> | 2026-07-21 11:36:18 +0200 |
|---|---|---|
| committer | Stephen Boyd <sboyd@kernel.org> | 2026-10-14 20:03:36 -0700 |
| commit | 91396478267ec6e9ec73a62de2e5c56a2d963ad2 (patch) | |
| tree | 9a948ca874c25f85cb96b3f5ab9f637135272701 /tools/lib/python | |
| parent | 33cc7810a0ae1f8d57dbec88e5a2843060457550 (diff) | |
spmi: Remove unneeded goto in spmi_device_add() error path
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.
Acked-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
