summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-06-26 16:20:55 +0100
committerMark Brown <broonie@linaro.org>2013-06-26 16:20:55 +0100
commit77ba61454a75daf5b64da995243cddb5b88bdea1 (patch)
tree5bcbc24ae8a4ad38e85091a537e86a4ec837c839 /drivers/spi
parent89b77c4b4493e97f3ad265c52d3a6ded2189ea0b (diff)
parente33d085d11e54bc9fb07b2555cd104d8e7b3089b (diff)
downloadlwn-77ba61454a75daf5b64da995243cddb5b88bdea1.tar.gz
lwn-77ba61454a75daf5b64da995243cddb5b88bdea1.zip
Merge remote-tracking branch 'spi/fix/xilinx' into spi-linus
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-xilinx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c
index 34d18dcfa0db..109a535b639c 100644
--- a/drivers/spi/spi-xilinx.c
+++ b/drivers/spi/spi-xilinx.c
@@ -315,7 +315,7 @@ static int xilinx_spi_txrx_bufs(struct spi_device *spi, struct spi_transfer *t)
}
/* See if there is more data to send */
- if (!xspi->remaining_bytes > 0)
+ if (xspi->remaining_bytes <= 0)
break;
}