Commit 8b20c8cb authored by Govindraj.R's avatar Govindraj.R Committed by Grant Likely

spi/omap2: fix uninitialized variable

fixes below compilation warning.  The variable doesn't actual ever get
used uninitialized, but that's no reason to be sloppy.

drivers/spi/omap2_mcspi.c: In function 'omap2_mcspi_txrx_dma':
drivers/spi/omap2_mcspi.c:301: warning: 'elements' may be used uninitialized in this function
Signed-off-by: default avatarGovindraj.R <govindraj.raja@ti.com>
[grant.likely: amended description]
Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 1fa7b6a2
...@@ -298,7 +298,7 @@ omap2_mcspi_txrx_dma(struct spi_device *spi, struct spi_transfer *xfer) ...@@ -298,7 +298,7 @@ omap2_mcspi_txrx_dma(struct spi_device *spi, struct spi_transfer *xfer)
unsigned int count, c; unsigned int count, c;
unsigned long base, tx_reg, rx_reg; unsigned long base, tx_reg, rx_reg;
int word_len, data_type, element_count; int word_len, data_type, element_count;
int elements; int elements = 0;
u32 l; u32 l;
u8 * rx; u8 * rx;
const u8 * tx; const u8 * tx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment