aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2015-10-28 15:14:35 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-29 08:57:19 +0900
commitc27fc351cf4298b5ade8f3bda8f8be15af5d6cde (patch)
tree3811d9cf6aad501df15df5ce669e038e2997625e /drivers/staging
parentstaging: most: hdm-dim2: use min_t() (diff)
downloadlinux-dev-c27fc351cf4298b5ade8f3bda8f8be15af5d6cde.tar.xz
linux-dev-c27fc351cf4298b5ade8f3bda8f8be15af5d6cde.zip
staging: most: remove exclusive wait_queue
This patch removes the unnecessary wait_queue that has exclusively been used for the poll function and its poll_table. Instead, an already existing one is used. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/most/aim-cdev/cdev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/most/aim-cdev/cdev.c b/drivers/staging/most/aim-cdev/cdev.c
index 4dd1434b8060..dc3fb25b52aa 100644
--- a/drivers/staging/most/aim-cdev/cdev.c
+++ b/drivers/staging/most/aim-cdev/cdev.c
@@ -32,7 +32,6 @@ static struct most_aim cdev_aim;
struct aim_channel {
wait_queue_head_t wq;
- wait_queue_head_t poll_wq;
struct cdev cdev;
struct device *dev;
struct mutex io_mutex;
@@ -283,7 +282,7 @@ static unsigned int aim_poll(struct file *filp, poll_table *wait)
struct aim_channel *c = filp->private_data;
unsigned int mask = 0;
- poll_wait(filp, &c->poll_wq, wait);
+ poll_wait(filp, &c->wq, wait);
if (c->cfg->direction == MOST_CH_RX) {
if (!kfifo_is_empty(&c->fifo))
@@ -459,7 +458,6 @@ static int aim_probe(struct most_interface *iface, int channel_id,
goto error_alloc_kfifo;
}
init_waitqueue_head(&channel->wq);
- init_waitqueue_head(&channel->poll_wq);
mutex_init(&channel->io_mutex);
spin_lock_irqsave(&ch_list_lock, cl_flags);
list_add_tail(&channel->list, &channel_list);