From: Axel Lin Date: Tue, 11 Jun 2013 13:57:31 +0000 (+0800) Subject: spi: armada100_spi: Remove unnecessary NULL test for dout and din X-Git-Tag: v2013.07-rc1~1^2~5 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0368292954c70d0413f849cb3d45b403beffeaa6;p=oweals%2Fu-boot.git spi: armada100_spi: Remove unnecessary NULL test for dout and din Signed-off-by: Axel Lin Reviewed-by: Marek Vasut Acked-by: Ajay Bhargav Reviewed-by: Jagannadha Sutradharudu Teki --- diff --git a/drivers/spi/armada100_spi.c b/drivers/spi/armada100_spi.c index afdbe0508c..b237c7c0fe 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);