From b5201d3ba904018903567e0513cf5148e99ae434 Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Thu, 29 Apr 2010 15:02:28 -0700 Subject: [PATCH] --- yaml --- r: 190436 b: refs/heads/master c: 95b1ed2ac7ffe3205afc6f5a20320fbdb984da92 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/Documentation/spi/spidev_test.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index a7867a7167fa..58cde0be7b92 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: dda04c7bcf58cb02ac796beb1cf483aa5277f2af +refs/heads/master: 95b1ed2ac7ffe3205afc6f5a20320fbdb984da92 diff --git a/trunk/Documentation/spi/spidev_test.c b/trunk/Documentation/spi/spidev_test.c index 10abd3773e49..16feda901469 100644 --- a/trunk/Documentation/spi/spidev_test.c +++ b/trunk/Documentation/spi/spidev_test.c @@ -58,7 +58,7 @@ static void transfer(int fd) }; ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr); - if (ret == 1) + if (ret < 1) pabort("can't send spi message"); for (ret = 0; ret < ARRAY_SIZE(tx); ret++) {