diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-07-28 14:39:25 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-29 10:43:46 +0300 |
commit | 3df0d66707a9772b0d6ff275f44ac285b6c4939c (patch) | |
tree | 290539deb814b1d130a12fb68ebced4a38d662da /profiles | |
parent | 0ce3938cd3ff1a94da0c3c78841fc59db5eca681 (diff) | |
download | bluez-3df0d66707a9772b0d6ff275f44ac285b6c4939c.tar.gz |
input/hog: Cleanup unnecessary code
The callback register by bt_uhid_register already contains the event type
so there is no need to check for it again.
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/input/hog.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/profiles/input/hog.c b/profiles/input/hog.c index 491f93382..df2b30bc3 100644 --- a/profiles/input/hog.c +++ b/profiles/input/hog.c @@ -340,9 +340,6 @@ static void forward_report(struct uhid_event *ev, void *user_data) size = ev->u.output.size; } - if (ev->type != UHID_OUTPUT) - return; - type = HOG_REPORT_TYPE_OUTPUT; l = g_slist_find_custom(hogdev->reports, GUINT_TO_POINTER(type), |