HID: usbhid: no flushing if device is already polled
commit615322f6ac358f9c94b483d0a16f3f46fcb27b1c
authorOliver Neukum <oneukum@suse.de>
Mon, 29 Jun 2015 09:10:41 +0000 (29 11:10 +0200)
committerJiri Kosina <jkosina@suse.com>
Wed, 8 Jul 2015 09:38:19 +0000 (8 11:38 +0200)
treec386e8e1c1b942f65bd7081395e87792babe8b65
parent67db8a8086e9b865533348954f5547f1e433101e
HID: usbhid: no flushing if device is already polled

During open() it is unnecessary to wait for the device to flush
stale inputs if the device is polled while closed due to a quirk
or opening fails.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/usbhid/hid-core.c