From e908ba91db76c49884b2bf3dceca3849ab4043c0 Mon Sep 17 00:00:00 2001 From: Xiaoyu Ye Date: Thu, 31 Aug 2017 18:36:00 -0700 Subject: [PATCH] ASoC: wcd-spi: initialize local variable 'status' Variable 'status' is used without initialization. Initialize it to the right value. Change-Id: I7f43d8905d8192e5f308e9fd00a52eb531f2f698 Signed-off-by: Xiaoyu Ye --- asoc/codecs/wcd-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asoc/codecs/wcd-spi.c b/asoc/codecs/wcd-spi.c index 67cb46c74925..072a7538ef1d 100644 --- a/asoc/codecs/wcd-spi.c +++ b/asoc/codecs/wcd-spi.c @@ -522,7 +522,7 @@ static int wcd_spi_cmd_rdsr(struct spi_device *spi, struct spi_transfer *tx_xfer = &wcd_spi->xfer2[0]; struct spi_transfer *rx_xfer = &wcd_spi->xfer2[1]; u8 rdsr_cmd; - u32 status; + u32 status = 0; int ret; rdsr_cmd = WCD_SPI_CMD_RDSR;