From 3df0d66707a9772b0d6ff275f44ac285b6c4939c Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 28 Jul 2014 14:39:25 +0300 Subject: [PATCH] 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. --- profiles/input/hog.c | 3 --- 1 file changed, 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), -- 2.47.3