Skip to content

Commit

Permalink
[media] cx231xx: Use wake_up_interruptible() instead of wake_up_inter…
Browse files Browse the repository at this point in the history
…ruptible_nr()

While looking at use cases of the wake queues in order to add support
for simple wait queues, I noticed that there was only a single user of
wake_up_interruptible_nr(), and that use was doing a single task wake
up. Have that user use the proper wake_up_interruptible() instead, and
perhaps we can even remove the function wake_up_interruptible_nr().

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
  • Loading branch information
Steven Rostedt authored and Mauro Carvalho Chehab committed Sep 3, 2015
1 parent abeaca0 commit 543409a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/usb/cx231xx/cx231xx-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,7 @@ static int cx231xx_close(struct file *filp)
v4l2_fh_exit(&fh->fh);
kfree(fh);
dev->users--;
wake_up_interruptible_nr(&dev->open, 1);
wake_up_interruptible(&dev->open);
return 0;
}

Expand Down Expand Up @@ -1908,7 +1908,7 @@ static int cx231xx_close(struct file *filp)
}
v4l2_fh_exit(&fh->fh);
kfree(fh);
wake_up_interruptible_nr(&dev->open, 1);
wake_up_interruptible(&dev->open);
return 0;
}

Expand Down

0 comments on commit 543409a

Please sign in to comment.