spi: armada100_spi: Remove unnecessary NULL test for dout and din
authorAxel Lin <axel.lin@ingics.com>
Tue, 11 Jun 2013 13:57:31 +0000 (21:57 +0800)
committerJagannadha Sutradharudu Teki <jaganna@xilinx.com>
Thu, 13 Jun 2013 17:25:18 +0000 (22:55 +0530)
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>
drivers/spi/armada100_spi.c

index afdbe0508ca1c0db7cc88237e45288c626f8e304..b237c7c0feac747eeaf8649e65ab8fba3407bdbb 100644 (file)
@@ -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);