HID: fix return value of hidraw_report_event() when !CONFIG_HIDRAW
authorJiri Kosina <jkosina@suse.cz>
Mon, 30 Apr 2012 08:39:17 +0000 (10:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 13:44:18 +0000 (06:44 -0700)
commit32bb39f80ffb6b63c78b418bec35a2ce1fc0abe1
treed6b20c325e328e09fd8ed7790d4e1dac3a911a7a
parent588256df90f26647828489e45d82b72e97d624e9
HID: fix return value of hidraw_report_event() when !CONFIG_HIDRAW

commit d6d7c873529abd622897cad5e36f1fd7d82f5110 upstream.

Commit b6787242f327 ("HID: hidraw: add proper error handling to raw event
reporting") forgot to update the static inline version of
hidraw_report_event() for the case when CONFIG_HIDRAW is unset. Fix that
up.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/hidraw.h