diff options
author | Brian Niebuhr <bniebuhr@efjohnson.com> | 2010-08-19 07:08:20 -0400 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2010-11-18 08:08:27 -0500 |
commit | 6321be60edac6037ea76e9beef375c6ae2961765 (patch) | |
tree | 94a0109860833a6d89d93e6f1d0d17b8d8e113b2 /drivers | |
parent | cda987ebb86dfc757320bfa5c7b2afcd9d3ed30f (diff) |
spi: davinci: eliminate unnecessary update of davinci_spi->count
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/davinci_spi.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index 3dac2038b5a6..f1c3502c2d01 100644 --- a/drivers/spi/davinci_spi.c +++ b/drivers/spi/davinci_spi.c | |||
@@ -726,9 +726,6 @@ static int davinci_spi_bufs_pio(struct spi_device *spi, struct spi_transfer *t) | |||
726 | if (ret != 0) | 726 | if (ret != 0) |
727 | return ret; | 727 | return ret; |
728 | 728 | ||
729 | /* SPI Framework maintains the count only in bytes so convert back */ | ||
730 | davinci_spi->count *= conv; | ||
731 | |||
732 | return t->len; | 729 | return t->len; |
733 | } | 730 | } |
734 | 731 | ||
@@ -880,9 +877,6 @@ static int davinci_spi_bufs_dma(struct spi_device *spi, struct spi_transfer *t) | |||
880 | if (ret != 0) | 877 | if (ret != 0) |
881 | return ret; | 878 | return ret; |
882 | 879 | ||
883 | /* SPI Framework maintains the count only in bytes so convert back */ | ||
884 | davinci_spi->count *= conv; | ||
885 | |||
886 | return t->len; | 880 | return t->len; |
887 | } | 881 | } |
888 | 882 | ||