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

Unverified Commit 52293596 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: soc-core: reduce if/else nest on soc_probe_link_dais



Deep nested codec is not readable.
Let's reduce if/else nest.

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 53e947a0
Loading
Loading
Loading
Loading
+17 −20
Original line number Diff line number Diff line
@@ -1612,9 +1612,7 @@ static int soc_probe_link_dais(struct snd_soc_card *card,
					 dai_link->stream_name);
			return ret;
		}
	} else {

		if (!dai_link->params) {
	} else if (!dai_link->params) {
		/* create the pcm */
		ret = soc_new_pcm(rtd, num);
		if (ret < 0) {
@@ -1633,7 +1631,6 @@ static int soc_probe_link_dais(struct snd_soc_card *card,
		INIT_DELAYED_WORK(&rtd->delayed_work,
				  codec2codec_close_delayed_work);
	}
	}

	return 0;
}