From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> 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 5a758f3..319cb2a 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); -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html