summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-06-11 21:57:31 +0800
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>2013-06-13 22:55:18 +0530
commit0368292954c70d0413f849cb3d45b403beffeaa6 (patch)
tree8e72d3aa8b4756c6ea9a477eca0287de1e3456d5 /drivers/spi
parent60b6614ac8d189b8e31b9a7564fe5babb374bffa (diff)
downloadu-boot-imx-0368292954c70d0413f849cb3d45b403beffeaa6.zip
u-boot-imx-0368292954c70d0413f849cb3d45b403beffeaa6.tar.gz
u-boot-imx-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.c11
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);