]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mediatek: mtk-btcvsd: Fix an error handling path in 'mtk_btcvsd_snd_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 6 Jun 2021 14:31:09 +0000 (16:31 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 8 Jun 2021 12:36:46 +0000 (13:36 +0100)
commit5f968060fd80e40e004b1f0fd708d49bb54fb007
tree993fa81feff308d962167ba7fb709b3f379f285a
parentd67d5a462b19e4839460749f1ead0443b89b462b
ASoC: mediatek: mtk-btcvsd: Fix an error handling path in 'mtk_btcvsd_snd_probe()'

If an error occurs after a successful 'of_iomap()' call, it must be undone
by a corresponding 'iounmap()' call, as already done in the remove
function.

While at it, remove the useless initialization of 'ret' at the beginning of
the function.

Fixes: 8b70f1cf2be9 ("ASoC: mediatek: add btcvsd driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/0c2ba562c3364e61bfbd5b3013a99dfa0d9045d7.1622989685.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/common/mtk-btcvsd.c