Skip to content

Commit 47d2b66

Browse files
bardliaobroonie
authored andcommitted
ASoC: Intel: sof_realtek_common: set ret = 0 as initial value
'ret' will not be initialized if dai_fmt is not DSP_A or DSP_B. Reviewed-by: Ranjani Sridharan <[email protected]> Signed-off-by: Bard Liao <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 5c10da4 commit 47d2b66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sound/soc/intel/boards/sof_realtek_common.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ static int rt1015_hw_params(struct snd_pcm_substream *substream,
267267
struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
268268
struct snd_soc_dai_link *dai_link = rtd->dai_link;
269269
struct snd_soc_dai *codec_dai;
270-
int i, clk_freq, ret;
270+
int i, clk_freq;
271+
int ret = 0;
271272

272273
clk_freq = sof_dai_get_bclk(rtd);
273274

0 commit comments

Comments
 (0)