Fix the build error 57/219557/2
authorDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 6 Dec 2019 03:52:45 +0000 (12:52 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Fri, 6 Dec 2019 03:58:05 +0000 (12:58 +0900)
Change-Id: I9cffab06ca9e4fc4c4f66e5c2dd0cfb27fb8613f
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
test/bt_onoff.c

index 038bc5f..fb593c4 100644 (file)
@@ -111,14 +111,13 @@ int main(int argc, char *argv[])
                NULL);
 
        if (argc <= 1) {
-               if (state == BT_ADAPTER_DISABLED) {
+               if (state == BT_ADAPTER_DISABLED)
                        ret = bt_adapter_enable();
                else
                        ret = bt_adapter_disable();
 
                TC_PRT("bt_adapter_%s() error(%d)",
                state == BT_ADAPTER_DISABLED ? "enable" : "disable", ret);
-               }
        } else {
                if (argv[1][0] == '0') {
                        if (state == BT_ADAPTER_DISABLED) {