drivers/spi: Remove DW spi slave test left over

This reset to 0 was used for testing threshold on slave mode.

Coverity-CID: 185402

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2018-04-30 12:28:09 +02:00 committed by Anas Nashif
parent ff0857df25
commit f4ad698847

View File

@ -398,8 +398,6 @@ static int transceive(struct device *dev,
spi->ctx.rx_len < DW_SPI_RXFTLR_DFLT) {
reg_data = spi->ctx.rx_len - 1;
}
reg_data = 0;
} else {
if (spi->ctx.rx_len && spi->ctx.rx_len < DW_SPI_FIFO_DEPTH) {
reg_data = spi->ctx.rx_len - 1;