From 2399cd19e6b3ca9a6c1dcbdefc80e6eafa43898b Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 19 Nov 2013 16:51:53 +0100 Subject: [PATCH] android/hal-bluetooth: Remove not needed check in set_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 | 9 --------- 1 file changed, 9 deletions(-) diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index b8ffce6f4..68f1bd544 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -508,15 +508,6 @@ static int set_adapter_property(const bt_property_t *property) if (!interface_ready()) return BT_STATUS_NOT_READY; - switch (property->type) { - case BT_PROPERTY_BDNAME: - case BT_PROPERTY_ADAPTER_SCAN_MODE: - case BT_PROPERTY_ADAPTER_DISCOVERY_TIMEOUT: - break; - default: - return BT_STATUS_PARM_INVALID; - } - /* type match IPC type */ cmd->type = property->type; cmd->len = property->len; -- 2.47.3