Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf8a0c58 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: utils: initialize dummy_codec before use"

parents 9fef8719 cae3e23d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -130,6 +130,9 @@ static int snd_soc_dummy_probe(struct platform_device *pdev)
{
	int ret;

	memset(&dummy_codec, 0,
		sizeof(struct snd_soc_codec_driver));

	ret = snd_soc_register_codec(&pdev->dev, &dummy_codec, &dummy_dai, 1);
	if (ret < 0)
		return ret;