]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: cs47l92: Simplify error handling code in 'cs47l92_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 26 Dec 2019 16:29:07 +0000 (17:29 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 31 Dec 2019 00:21:20 +0000 (00:21 +0000)
commitc74bfcbcb6c3fa988fa27557ab72dcdaa4005488
tree6cc8f535a2b14c687ba93260e060efaa13c41ea7
parent339bf30ad1ef5e7c9ec979cfa0bb1b568a5fb41f
ASoC: cs47l92: Simplify error handling code in 'cs47l92_probe()'

If 'madera_init_bus_error_irq()' fails,
'wm_adsp2_remove(&cs47l92->core.adsp[0])' will be called twice.
Once in the 'if' block, and once in the error handling path.
This is harmless, but one of this call can be axed.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20191226162907.9490-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs47l92.c