HID: output event in debugfs even if hid_get_report() fails
authorJiri Kosina <jkosina@suse.cz>
Thu, 18 Mar 2010 11:09:53 +0000 (12:09 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 18 Mar 2010 11:09:53 +0000 (12:09 +0100)
if hid_get_report() fails for whatever reason, the raw output of
the report doesn't make it into 'events' file in debugfs at all, because
we leave hid_input_report() too soon.

We want the report to be always present for debugging reasons. Move the
code around, so that the event makes it to 'events' file all the time,
even if we are going to discard the report.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>

No differences found