summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/iio/industrialio-event.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/iio/industrialio-event.c')
-rw-r--r--kernel/drivers/iio/industrialio-event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/iio/industrialio-event.c b/kernel/drivers/iio/industrialio-event.c
index a99692ba9..69b8c338f 100644
--- a/kernel/drivers/iio/industrialio-event.c
+++ b/kernel/drivers/iio/industrialio-event.c
@@ -84,7 +84,7 @@ static unsigned int iio_event_poll(struct file *filep,
unsigned int events = 0;
if (!indio_dev->info)
- return -ENODEV;
+ return events;
poll_wait(filep, &ev_int->wait, wait);