summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2011-01-03 12:03:44 -0800
committerJohn W. Linville <linville@tuxdriver.com>2011-01-04 14:46:56 -0500
commitdb98a6cfcc9ac951067c9a2cb60459b618fd7b10 (patch)
tree0975c85b4dd1e17db0cca7b604c7bb97ee38fb4f /drivers/net/wireless
parentb5c34f662a3519d34f9634a14d8de638fdbe0ca3 (diff)
libertas: down_interruptible() can return -EINTR, not EINTR
Fix test in lbs_spi_thread(). down_interruptible() can return -EINTR, but not EINTR. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Cc: Dan Williams <dcbw@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/libertas/if_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/if_spi.c b/drivers/net/wireless/libertas/if_spi.c
index ecd4d04b2c3..00600239a05 100644
--- a/drivers/net/wireless/libertas/if_spi.c
+++ b/drivers/net/wireless/libertas/if_spi.c
@@ -784,7 +784,7 @@ static int lbs_spi_thread(void *data)
up(&card->spi_thread_terminated);
do_exit(0);
}
- } while (err == EINTR);
+ } while (err == -EINTR);
/* Read the host interrupt status register to see what we
* can do. */