From 9ed863baef22cdfd30fcd6b905b9dde4995073dd Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 28 Nov 2013 15:15:29 +0100 Subject: [PATCH] android/bluetooth: Remove not needed notification_sk checks This is now checked inside ipc_send_notif helper. --- android/bluetooth.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/android/bluetooth.c b/android/bluetooth.c index 68e26fa2b..fdafb819b 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -1185,9 +1185,7 @@ static void remove_uuid_complete(uint8_t status, uint16_t length, mgmt_dev_class_changed_event(adapter.index, length, param, NULL); - /* send notification only if bluetooth service is registered */ - if (notification_sk >= 0) - get_uuids(); + get_uuids(); } static void remove_uuid(uint16_t uuid) @@ -1213,9 +1211,7 @@ static void add_uuid_complete(uint8_t status, uint16_t length, mgmt_dev_class_changed_event(adapter.index, length, param, NULL); - /* send notification only if bluetooth service is registered */ - if (notification_sk >= 0) - get_uuids(); + get_uuids(); } static void add_uuid(uint8_t svc_hint, uint16_t uuid) -- 2.47.3