diff mbox

[18/49] spi: davinci: eliminate unnecessary update of davinci_spi->count

Message ID 1289990661-30126-19-git-send-email-nsekhar@ti.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Sekhar Nori Nov. 17, 2010, 10:43 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c
index 3dac2038..f1c3502 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)
 	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;
 }