projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c10da4
)
ASoC: Intel: sof_realtek_common: set ret = 0 as initial value
author
Bard Liao
<yung-chuan.liao@linux.intel.com>
Tue, 6 Dec 2022 21:25:07 +0000
(15:25 -0600)
committer
Mark Brown
<broonie@kernel.org>
Wed, 7 Dec 2022 14:19:09 +0000
(14:19 +0000)
'ret' will not be initialized if dai_fmt is not DSP_A or DSP_B.
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link:
https://lore.kernel.org/r/20221206212507.359993-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_realtek_common.c
patch
|
blob
|
history
diff --git
a/sound/soc/intel/boards/sof_realtek_common.c
b/sound/soc/intel/boards/sof_realtek_common.c
index ff2851fc8930a2126d8e6976bb8c14706ab864b7..6c12ca92f3713df087f8a7af82404b7af03f2e09 100644
(file)
--- a/
sound/soc/intel/boards/sof_realtek_common.c
+++ b/
sound/soc/intel/boards/sof_realtek_common.c
@@
-267,7
+267,8
@@
static int rt1015_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
struct snd_soc_dai_link *dai_link = rtd->dai_link;
struct snd_soc_dai *codec_dai;
- int i, clk_freq, ret;
+ int i, clk_freq;
+ int ret = 0;
clk_freq = sof_dai_get_bclk(rtd);