]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
spi: davinci: remove unnecessary completion variable initialization
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Mon, 23 Aug 2010 11:04:13 +0000 (16:34 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:29 +0000 (18:38 +0530)
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>
drivers/spi/davinci_spi.c

index a60a65c690decd3e456ce051c03fe216cdbe86e0..54d06f409b65393692ad4ae84f926ced7fc28b3f 100644 (file)
@@ -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);