Skip to content
Commit c4124c9b authored by Jiri Kosina's avatar Jiri Kosina
Browse files

HID: remove redundant WARN_ON()s in order not to scare users



The WARN_ON() in implement() and extract() spit out stacktraces and
a lot of other information that might make users think that there is
something seriously wrong with the system. WARN_ON() should not be
deliberately triggerable by userspace application, which these can be.
Usually this WARN_ON() triggers when hid2hci utility is sending the
data that don't correspond to the device's report descriptor.

Convert these messages to more friendly printk().

Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 0887b4cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment