spi: armada100_spi: Remove unnecessary NULL test for dout and din
Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Marek Vasut <marex@denx.de> Acked-by: Ajay Bhargav <ajay.bhargav@einfochips.com> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
This commit is contained in:
parent
60b6614ac8
commit
0368292954
@ -182,15 +182,8 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (dout)
|
||||
pss->tx = dout;
|
||||
else
|
||||
pss->tx = NULL;
|
||||
|
||||
if (din)
|
||||
pss->rx = din;
|
||||
else
|
||||
pss->rx = NULL;
|
||||
pss->tx = dout;
|
||||
pss->rx = din;
|
||||
|
||||
if (flags & SPI_XFER_BEGIN) {
|
||||
spi_cs_activate(slave);
|
||||
|
Loading…
Reference in New Issue
Block a user