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>
This commit is contained in:
parent
cda987ebb8
commit
6321be60ed
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue