public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] spi: armada100_spi: Remove unnecessary NULL test for dout and din
@ 2013-06-11 13:57 Axel Lin
  2013-06-11 14:49 ` Simon Glass
  2013-06-13 17:32 ` [U-Boot] " Jagan Teki
  0 siblings, 2 replies; 6+ messages in thread
From: Axel Lin @ 2013-06-11 13:57 UTC (permalink / raw)
  To: u-boot

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/spi/armada100_spi.c | 11 ++---------
 1 file 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);
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-06-13 17:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-11 13:57 [U-Boot] [PATCH] spi: armada100_spi: Remove unnecessary NULL test for dout and din Axel Lin
2013-06-11 14:49 ` Simon Glass
2013-06-12  8:38   ` Marek Vasut
2013-06-12 10:19     ` Ajay Bhargav
2013-06-12 19:04       ` Jagan Teki
2013-06-13 17:32 ` [U-Boot] " Jagan Teki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox