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:
Karthikeyan Mani 2017-04-12 15:44:05 -07:00 committed by Gerrit - the friendly Code Review server
parent 9898f867d9
commit d1e077de03

View file

@ -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)) {