diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/serio/serio_raw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/serio/serio_raw.c b/drivers/input/serio/serio_raw.c index ca78a890c75..f6c83e9ecff 100644 --- a/drivers/input/serio/serio_raw.c +++ b/drivers/input/serio/serio_raw.c | |||
@@ -237,9 +237,9 @@ static unsigned int serio_raw_poll(struct file *file, poll_table *wait) | |||
237 | 237 | ||
238 | mask = serio_raw->dead ? POLLHUP | POLLERR : POLLOUT | POLLWRNORM; | 238 | mask = serio_raw->dead ? POLLHUP | POLLERR : POLLOUT | POLLWRNORM; |
239 | if (serio_raw->head != serio_raw->tail) | 239 | if (serio_raw->head != serio_raw->tail) |
240 | return POLLIN | POLLRDNORM; | 240 | mask |= POLLIN | POLLRDNORM; |
241 | 241 | ||
242 | return 0; | 242 | return mask; |
243 | } | 243 | } |
244 | 244 | ||
245 | static const struct file_operations serio_raw_fops = { | 245 | static const struct file_operations serio_raw_fops = { |