summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-tegra11.c
diff options
context:
space:
mode:
authorSri Krishna chowdary <schowdary@nvidia.com>2012-09-26 09:13:47 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 01:13:01 -0700
commit204c1fac7c030e0512882b795839ee9996b41431 (patch)
tree4cdac0296bf38e60df226dc378e64c97f0248c23 /drivers/spi/spi-tegra11.c
parent0b2dc044d3d812f26e3267e1e6b9d53281b47f3a (diff)
spi: tegra: Treat Warning as Error
Fix coverity issue. Adding flag to treat compile warnings as errors. Bug 1046331 Change-Id: Ib6c1c8956d7a8bac1ef1d64dd58313e878877cc1 Signed-off-by: Sri Krishna chowdary <schowdary@nvidia.com> Reviewed-on: http://git-master/r/138811 Reviewed-by: Amit Kamath <akamath@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit Rebase-Id: R1a5458c99d480333a0263f79d5294e3ca22a8ac6
Diffstat (limited to 'drivers/spi/spi-tegra11.c')
-rw-r--r--drivers/spi/spi-tegra11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-tegra11.c b/drivers/spi/spi-tegra11.c
index f03df900fd55..a37f1ddef758 100644
--- a/drivers/spi/spi-tegra11.c
+++ b/drivers/spi/spi-tegra11.c
@@ -401,7 +401,7 @@ static unsigned int spi_tegra_read_rx_fifo_to_client_rxbuf(
u8 *rx_buf = (u8 *)t->rx_buf + tspi->cur_rx_pos;
unsigned i, count;
unsigned long x;
- unsigned int read_words;
+ unsigned int read_words = 0;
unsigned len;
fifo_status = spi_tegra_readl(tspi, SPI_FIFO_STATUS);
@@ -639,7 +639,7 @@ static int spi_tegra_data_settings(struct spi_device *spi,
{
struct spi_tegra_data *tspi = spi_master_get_devdata(spi->master);
unsigned long val;
- u32 bits_per_word;
+ u32 bits_per_word = 0;
if (t->bits_per_word || spi->bits_per_word)
bits_per_word = t->bits_per_word ? t->bits_per_word :