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)
committerJiri Kosina <jkosina@suse.cz>
Mon, 30 Apr 2012 08:39:17 +0000 (10:39 +0200)
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>
include/linux/hidraw.h

index 9cdc9b6..45e9fcb 100644 (file)
@@ -82,7 +82,7 @@ void hidraw_disconnect(struct hid_device *);
 #else
 static inline int hidraw_init(void) { return 0; }
 static inline void hidraw_exit(void) { }
-static inline int hidraw_report_event(struct hid_device *hid, u8 *data, int len) { }
+static inline int hidraw_report_event(struct hid_device *hid, u8 *data, int len) { return 0; }
 static inline int hidraw_connect(struct hid_device *hid) { return -1; }
 static inline void hidraw_disconnect(struct hid_device *hid) { }
 #endif