diff options
author | roel kluin <roel.kluin@gmail.com> | 2011-01-03 20:03:44 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-04 19:46:56 (GMT) |
commit | db98a6cfcc9ac951067c9a2cb60459b618fd7b10 (patch) | |
tree | 0975c85b4dd1e17db0cca7b604c7bb97ee38fb4f /drivers | |
parent | b5c34f662a3519d34f9634a14d8de638fdbe0ca3 (diff) | |
download | linux-fsl-qoriq-db98a6cfcc9ac951067c9a2cb60459b618fd7b10.tar.xz |
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')
-rw-r--r-- | drivers/net/wireless/libertas/if_spi.c | 2 |
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 ecd4d04..0060023 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. */ |