summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2011-01-03 21:03:44 +0100
committerJohn W. Linville <linville@tuxdriver.com>2011-01-04 20:46:56 +0100
commitdb98a6cfcc9ac951067c9a2cb60459b618fd7b10 (patch)
tree0975c85b4dd1e17db0cca7b604c7bb97ee38fb4f /drivers/net
parentmac80211: fix some key comments and code (diff)
downloadlinux-db98a6cfcc9ac951067c9a2cb60459b618fd7b10.tar.xz
linux-db98a6cfcc9ac951067c9a2cb60459b618fd7b10.zip
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.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 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)
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. */