Parcourir la source

Merge "ASoC: wcd-spi: initialize local variable 'status'"

Linux Build Service Account il y a 7 ans
Parent
commit
24f165a616
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      asoc/codecs/wcd-spi.c

+ 1 - 1
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;