]> git.karo-electronics.de Git - linux-beck.git/commitdiff
spi: davinci: eliminate unnecessary update of davinci_spi->count
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Thu, 19 Aug 2010 11:08:20 +0000 (16:38 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:27 +0000 (18:38 +0530)
The count member of davinci_spi is internal to the driver and
is not shared with framework. Eliminate its unnecessary update.

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 3dac2038b5a6c3cea8da2741b4450175a1e005ba..f1c3502c2d012a147ada8fc4d3e0ef7ac4cbab49 100644 (file)
@@ -726,9 +726,6 @@ static int davinci_spi_bufs_pio(struct spi_device *spi, struct spi_transfer *t)
        if (ret != 0)
                return ret;
 
-       /* SPI Framework maintains the count only in bytes so convert back */
-       davinci_spi->count *= conv;
-
        return t->len;
 }
 
@@ -880,9 +877,6 @@ static int davinci_spi_bufs_dma(struct spi_device *spi, struct spi_transfer *t)
        if (ret != 0)
                return ret;
 
-       /* SPI Framework maintains the count only in bytes so convert back */
-       davinci_spi->count *= conv;
-
        return t->len;
 }