linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/2] input/hog: Cleanup unnecessary code
@ 2014-07-28 11:39 Luiz Augusto von Dentz
  2014-07-28 11:39 ` [PATCH BlueZ 2/2] android/hog: Fix handling UHID_FEATURE as UHID_OUTPUT Luiz Augusto von Dentz
  2014-07-29  7:44 ` [PATCH BlueZ 1/2] input/hog: Cleanup unnecessary code Johan Hedberg
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2014-07-28 11:39 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

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 491f933..df2b30b 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),
-- 
1.9.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-07-29  7:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 11:39 [PATCH BlueZ 1/2] input/hog: Cleanup unnecessary code Luiz Augusto von Dentz
2014-07-28 11:39 ` [PATCH BlueZ 2/2] android/hog: Fix handling UHID_FEATURE as UHID_OUTPUT Luiz Augusto von Dentz
2014-07-29  7:44 ` [PATCH BlueZ 1/2] input/hog: Cleanup unnecessary code Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).