mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
spi: davinci: remove unnecessary completion variable initialization
The completion variable 'done' is unnecessarly initialized by the function davinci_spi_bufs_dma() where as it is not used for DMA transfers at all. Remove the unnecessary initialization. Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com> Tested-By: Michael Williamson <michael.williamson@criticallink.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
This commit is contained in:
parent
134e32b979
commit
47f44671c0
1 changed files with 0 additions and 2 deletions
|
@ -750,8 +750,6 @@ static int davinci_spi_bufs_dma(struct spi_device *spi, struct spi_transfer *t)
|
|||
|
||||
data1_reg_val = ioread32(davinci_spi->base + SPIDAT1);
|
||||
|
||||
INIT_COMPLETION(davinci_spi->done);
|
||||
|
||||
init_completion(&davinci_spi_dma->dma_rx_completion);
|
||||
init_completion(&davinci_spi_dma->dma_tx_completion);
|
||||
|
||||
|
|
Loading…
Reference in a new issue