summaryrefslogtreecommitdiff
path: root/drivers/spi/zynq_spi.c
diff options
context:
space:
mode:
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>2015-04-15 13:13:28 +0200
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>2015-04-22 16:49:51 +0530
commit8c48a68346038fdaa901e622760fe4c6a302220b (patch)
tree172f7222416b2849c2dfb8a61727a2e4cdaf97d6 /drivers/spi/zynq_spi.c
parent06bc1756c5b75ff8719ee969b3b99b4d32d9603e (diff)
downloadu-boot-imx-8c48a68346038fdaa901e622760fe4c6a302220b.zip
u-boot-imx-8c48a68346038fdaa901e622760fe4c6a302220b.tar.gz
u-boot-imx-8c48a68346038fdaa901e622760fe4c6a302220b.tar.bz2
zynq: spi: Remove unnecessary error condition
Removed the unnecessary error check from spi_xfer as the bitlen zero is possible now to deassert the chip select for which no data is required to be transfered. Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Diffstat (limited to 'drivers/spi/zynq_spi.c')
-rw-r--r--drivers/spi/zynq_spi.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c
index 5da8759..e9129da 100644
--- a/drivers/spi/zynq_spi.c
+++ b/drivers/spi/zynq_spi.c
@@ -227,9 +227,6 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
debug("spi_xfer: bus:%i cs:%i bitlen:%i len:%i flags:%lx\n",
slave->bus, slave->cs, bitlen, len, flags);
- if (bitlen == 0)
- return -1;
-
if (bitlen % 8) {
debug("spi_xfer: Non byte aligned SPI transfer\n");
return -1;