summaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/selection.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/speakup/selection.c')
-rw-r--r--drivers/staging/speakup/selection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/selection.c b/drivers/staging/speakup/selection.c
index afd9a446a06f..4417c00e68a7 100644
--- a/drivers/staging/speakup/selection.c
+++ b/drivers/staging/speakup/selection.c
@@ -175,7 +175,7 @@ static struct speakup_paste_work speakup_paste_work = {
int speakup_paste_selection(struct tty_struct *tty)
{
- if (cmpxchg(&speakup_paste_work.tty, NULL, tty) != NULL)
+ if (cmpxchg(&speakup_paste_work.tty, NULL, tty))
return -EBUSY;
tty_kref_get(tty);