From 3e0b74007b90b43a1432bf0fd2509ef2781ece7c Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 19 Nov 2013 16:51:54 +0100 Subject: [PATCH] android/hal-bluetooth: Remove not needed check in get_adapter_property Properties types are verified on daemon side and proper error is returned on wrong type. No need to double check that on HAL side. --- android/hal-bluetooth.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index 68f1bd544..b04939e3a 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -476,21 +476,6 @@ static int get_adapter_property(bt_property_type_t type) if (!interface_ready()) return BT_STATUS_NOT_READY; - switch (type) { - case BT_PROPERTY_BDNAME: - case BT_PROPERTY_BDADDR: - case BT_PROPERTY_UUIDS: - case BT_PROPERTY_CLASS_OF_DEVICE: - case BT_PROPERTY_TYPE_OF_DEVICE: - case BT_PROPERTY_SERVICE_RECORD: - case BT_PROPERTY_ADAPTER_SCAN_MODE: - case BT_PROPERTY_ADAPTER_BONDED_DEVICES: - case BT_PROPERTY_ADAPTER_DISCOVERY_TIMEOUT: - break; - default: - return BT_STATUS_PARM_INVALID; - } - /* type match IPC type */ cmd.type = type; -- 2.47.3