platform/x86: peaq-wmi: Fix peaq_ignore_events_counter handling off by 1

If peaq_ignore_events_counter gets set to 1 we should skip polling 1
time, rather then ignoring it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
This commit is contained in:
Hans de Goede 2017-07-11 13:41:34 +02:00 committed by Darren Hart (VMware)
parent b77a537207
commit c1bda752fd

View File

@ -51,7 +51,7 @@ static void peaq_wmi_poll(struct input_polled_dev *dev)
return;
}
if (peaq_ignore_events_counter && --peaq_ignore_events_counter > 0)
if (peaq_ignore_events_counter && --peaq_ignore_events_counter >= 0)
return;
if (obj.integer.value) {