diff options
author | roel kluin <roel.kluin@gmail.com> | 2011-01-03 15:03:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-04 14:46:56 -0500 |
commit | db98a6cfcc9ac951067c9a2cb60459b618fd7b10 (patch) | |
tree | 0975c85b4dd1e17db0cca7b604c7bb97ee38fb4f /drivers/net | |
parent | b5c34f662a3519d34f9634a14d8de638fdbe0ca3 (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')
-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 ecd4d04b2c3c..00600239a053 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) | |||
784 | up(&card->spi_thread_terminated); | 784 | up(&card->spi_thread_terminated); |
785 | do_exit(0); | 785 | do_exit(0); |
786 | } | 786 | } |
787 | } while (err == EINTR); | 787 | } while (err == -EINTR); |
788 | 788 | ||
789 | /* Read the host interrupt status register to see what we | 789 | /* Read the host interrupt status register to see what we |
790 | * can do. */ | 790 | * can do. */ |