OSDN Git Service

android/bluetooth: Remove not needed notification_sk checks
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 28 Nov 2013 14:15:29 +0000 (15:15 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 28 Nov 2013 16:02:27 +0000 (18:02 +0200)
This is now checked inside ipc_send_notif helper.

android/bluetooth.c

index 68e26fa..fdafb81 100644 (file)
@@ -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)