mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
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
1 changed files with 2 additions and 9 deletions
|
|
@ -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…
Add table
Reference in a new issue