From a41d08c3763014ae886a1d51a89801c21da34273 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 30 Jun 2014 16:47:54 +0300 Subject: [PATCH] android/hog: Remove unused code report_free is only called once after detaching so this code is no longer necessary. --- android/hog.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/android/hog.c b/android/hog.c index 4f16111fe..43bd2662f 100644 --- a/android/hog.c +++ b/android/hog.c @@ -699,10 +699,6 @@ static void char_discovered_cb(uint8_t status, GSList *chars, void *user_data) static void report_free(void *data) { struct report *report = data; - struct bt_hog *hog = report->hog; - - if (hog->attrib) - g_attrib_unregister(hog->attrib, report->notifyid); g_free(report->decl); g_free(report); -- 2.47.3