diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2016-09-07 16:04:05 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-09-12 21:01:27 +0200 |
commit | bffc967e93c771805739a4cc4c7849a749a7b0a6 (patch) | |
tree | 05d4a5c8c344e8cc77fbc5c5af10ee9c5f061353 /drivers/spi/spi-pxa2xx-dma.c | |
parent | Linux 4.8-rc1 (diff) | |
download | linux-bffc967e93c771805739a4cc4c7849a749a7b0a6.tar.xz linux-bffc967e93c771805739a4cc4c7849a749a7b0a6.zip |
spi: pxa2xx: Do not needlessly initialize stack variables
All of these variables are unconditionally set before their use.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx-dma.c')
-rw-r--r-- | drivers/spi/spi-pxa2xx-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-pxa2xx-dma.c b/drivers/spi/spi-pxa2xx-dma.c index db3ae1dd829e..80c8e27a2f73 100644 --- a/drivers/spi/spi-pxa2xx-dma.c +++ b/drivers/spi/spi-pxa2xx-dma.c @@ -146,7 +146,7 @@ irqreturn_t pxa2xx_spi_dma_transfer(struct driver_data *drv_data) int pxa2xx_spi_dma_prepare(struct driver_data *drv_data, u32 dma_burst) { struct dma_async_tx_descriptor *tx_desc, *rx_desc; - int err = 0; + int err; tx_desc = pxa2xx_spi_dma_prepare_one(drv_data, DMA_MEM_TO_DEV); if (!tx_desc) { |