]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sh: rz-ssi: Improve error handling in rz_ssi_probe() error path
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 28 Jul 2022 09:26:12 +0000 (10:26 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 5 Aug 2022 11:57:26 +0000 (12:57 +0100)
commitfa72b83404a0e7fe8972b83103f1b12503d3cebc
tree25303bb3c850af8646ba7343851869c2839e2a27
parent80a614ddab07db415fba33b3410792fe5ca1c949
ASoC: sh: rz-ssi: Improve error handling in rz_ssi_probe() error path

We usually do cleanup in reverse order of init. Currently in case of
error rz_ssi_release_dma_channels() done in the reverse order. This
patch improves error handling in rz_ssi_probe() error path.

While at it, use "goto cleanup" style to reduce code duplication.

Reported-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20220728092612.38858-1-biju.das.jz@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rz-ssi.c