Skip to content

Commit

Permalink
libertas: down_interruptible() can return -EINTR, not EINTR
Browse files Browse the repository at this point in the history
Fix test in lbs_spi_thread().  down_interruptible() can return -EINTR, but
not EINTR.

Signed-off-by: Roel Kluin <[email protected]>
Cc: Dan Williams <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
RoelKluin authored and linvjw committed Jan 4, 2011
1 parent b5c34f6 commit db98a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/libertas/if_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit db98a6c

Please sign in to comment.