libertas: down_interruptible() can return -EINTR, not EINTR
authorroel kluin <roel.kluin@gmail.com>
Mon, 3 Jan 2011 20:03:44 +0000 (12:03 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 4 Jan 2011 19:46:56 +0000 (14:46 -0500)
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>
drivers/net/wireless/libertas/if_spi.c

index ecd4d04b2c3cea67aebd6d62c9446a3318a2840c..00600239a053ff8e6e38383c015de42d30401f7f 100644 (file)
@@ -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. */