diff options
author | Govindraj.R <govindraj.raja@ti.com> | 2011-06-01 11:31:24 +0530 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-06-03 14:57:07 -0600 |
commit | 8b20c8cb89b733f5a73fad1f7ad7cff8325e0034 (patch) | |
tree | dd2b342ab99b18bd88cb29926ea66c70b68d69b1 /drivers/spi/omap2_mcspi.c | |
parent | 1fa7b6a29c61358cc2ca6f64cef4aa0e1a7ca74c (diff) | |
download | blackbird-obmc-linux-8b20c8cb89b733f5a73fad1f7ad7cff8325e0034.tar.gz blackbird-obmc-linux-8b20c8cb89b733f5a73fad1f7ad7cff8325e0034.zip |
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: Govindraj.R <govindraj.raja@ti.com>
[grant.likely: amended description]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/omap2_mcspi.c')
-rw-r--r-- | drivers/spi/omap2_mcspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c index 6f86ba0175ac..969cdd2fe124 100644 --- a/drivers/spi/omap2_mcspi.c +++ b/drivers/spi/omap2_mcspi.c @@ -298,7 +298,7 @@ omap2_mcspi_txrx_dma(struct spi_device *spi, struct spi_transfer *xfer) unsigned int count, c; unsigned long base, tx_reg, rx_reg; int word_len, data_type, element_count; - int elements; + int elements = 0; u32 l; u8 * rx; const u8 * tx; |