ASoC: wcd-spi: Initialize variables before use
Initialize variable before use to avoid invalid memory access. CRs-fixed: 2004067 Change-Id: I9f7dd1e87d323ff300060c3d838342f55e6711e8 Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
This commit is contained in:
parent
9898f867d9
commit
d1e077de03
1 changed files with 1 additions and 1 deletions
|
@ -553,7 +553,7 @@ static int wcd_spi_clk_enable(struct spi_device *spi)
|
|||
{
|
||||
struct wcd_spi_priv *wcd_spi = spi_get_drvdata(spi);
|
||||
int ret;
|
||||
u32 rd_status;
|
||||
u32 rd_status = 0;
|
||||
|
||||
ret = wcd_spi_cmd_nop(spi);
|
||||
if (IS_ERR_VALUE(ret)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue