ASoC: rockchip: pdm: Fix compile warning
sound/soc/rockchip/rockchip_pdm.c: In function 'rockchip_pdm_hw_params': sound/soc/rockchip/rockchip_pdm.c:179:3: warning: 'clk_out' may be used uninitialized in this function [-Wmaybe-uninitialized] Change-Id: I10b240781043a61ce365e6349a102b625db433c7 Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
parent
d6ecef678c
commit
ca50cb058e
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ static int rockchip_pdm_hw_params(struct snd_pcm_substream *substream,
|
|||
struct rk_pdm_dev *pdm = to_info(dai);
|
||||
unsigned int val = 0;
|
||||
unsigned int clk_rate, clk_div, samplerate;
|
||||
unsigned int clk_src, clk_out;
|
||||
unsigned int clk_src, clk_out = 0;
|
||||
unsigned long m, n;
|
||||
bool change;
|
||||
int ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue