diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-06-11 21:57:31 +0800 |
---|---|---|
committer | Jagannadha Sutradharudu Teki <jaganna@xilinx.com> | 2013-06-13 22:55:18 +0530 |
commit | 0368292954c70d0413f849cb3d45b403beffeaa6 (patch) | |
tree | 8e72d3aa8b4756c6ea9a477eca0287de1e3456d5 /drivers/spi | |
parent | 60b6614ac8d189b8e31b9a7564fe5babb374bffa (diff) | |
download | u-boot-0368292954c70d0413f849cb3d45b403beffeaa6.zip u-boot-0368292954c70d0413f849cb3d45b403beffeaa6.tar.gz u-boot-0368292954c70d0413f849cb3d45b403beffeaa6.tar.bz2 |
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/armada100_spi.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/spi/armada100_spi.c b/drivers/spi/armada100_spi.c index afdbe05..b237c7c 100644 --- a/drivers/spi/armada100_spi.c +++ b/drivers/spi/armada100_spi.c @@ -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); |