Resolve coverty issue branch_past_initialization 67/224867/1
authorSudipto <sudipto.bal@samsung.com>
Thu, 13 Feb 2020 13:59:35 +0000 (19:29 +0530)
committerSudipto <sudipto.bal@samsung.com>
Thu, 13 Feb 2020 13:59:35 +0000 (19:29 +0530)
Change-Id: I4b7937e3d16c40539896590f08ff09c055566b96
Signed-off-by: Sudipto <sudipto.bal@samsung.com>
test/bt_unit_test.c

index b7e6a48..c6e5f92 100644 (file)
@@ -4736,13 +4736,14 @@ int test_input_callback(void *data)
                        break;
                }
 
-               case BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_SCAN:
+               case BT_UNIT_TEST_FUNCTION_ADAPTER_LE_START_SCAN: {
                        ret = bt_adapter_le_start_scan(
                                __bt_adapter_le_scan_result_cb, NULL);
                        TC_PRT("returns %s\n", __bt_get_error_message(ret));
                        break;
+               }
 
-               case BT_UNIT_TEST_FUNCTION_ADAPTER_LE_STOP_SCAN:
+               case BT_UNIT_TEST_FUNCTION_ADAPTER_LE_STOP_SCAN: {
                        ret = bt_adapter_le_stop_scan();
                        TC_PRT("returns %s\n", __bt_get_error_message(ret));
 
@@ -4766,6 +4767,7 @@ int test_input_callback(void *data)
                        le_scan_list = NULL;
 
                        break;
+               }
 
                case BT_UNIT_TEST_FUNCTION_ADAPTER_LE_ADD_ADVERTISING_DATA: {
                        int adv_data_type = 3; /* default all */