ASoC: tas5720: add missing unwind goto in tas5720_codec_probe
authorYing Liu <lyre@hust.edu.cn>
Tue, 11 Apr 2023 17:09:12 +0000 (01:09 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 12 Apr 2023 11:52:00 +0000 (12:52 +0100)
commitd93ee84e3eb5d1afc081e57ca37f1411a01f2c94
tree5ab297fb1120df4df2e452b77139c089c011280e
parentef0128afa1655f8d024dc5058fbfa0c6deecf117
ASoC: tas5720: add missing unwind goto in tas5720_codec_probe

Smatch complains that missing unwind goto in tas5720_codec_probe.

When tas5720 has an invalid devtype, it is expected to invoke
regulator_bulk_disable to handle the failure. But the default
option return an error code directly. Fix it by reusing the
probe_fail label.

Signed-off-by: Ying Liu <lyre@hust.edu.cn>
Link: https://lore.kernel.org/r/20230411170912.1939906-1-lyre@hust.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas5720.c