Fix svace 2.2 issues 75/100775/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 29 Nov 2016 07:37:32 +0000 (16:37 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 29 Nov 2016 07:37:32 +0000 (16:37 +0900)
Change-Id: Ica961fa70a2e80af891685b8ededca178285ffff
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
ag-agent/bluetooth-ag-manager.c
packaging/bluetooth-agent.spec

index d40220d..9503dbc 100755 (executable)
@@ -535,7 +535,7 @@ static void __bt_hfp_handle_call_conference(void)
                        t_active_call_count++;
 
                        if (t_active_call_count >= 2) {
-                               if (!t_active_call->call_conference)
+                               if (t_active_call->call_conference == FALSE)
                                        t_active_call->call_conference = TRUE;
                                t_call->call_conference = TRUE;
                        }
@@ -547,7 +547,7 @@ static void __bt_hfp_handle_call_conference(void)
                        t_held_call_count++;
 
                        if (t_held_call_count >= 2) {
-                               if (!t_held_call->call_conference)
+                               if (t_held_call->call_conference == FALSE)
                                        t_held_call->call_conference = TRUE;
                                t_call->call_conference = TRUE;
                        }
@@ -555,14 +555,10 @@ static void __bt_hfp_handle_call_conference(void)
        }
 
        if (t_held_call_count == 1) {
-                       if (t_held_call->call_conference)
-                               t_held_call->call_conference = FALSE;
-               }
+               t_held_call->call_conference = FALSE;
 
-       if (t_active_call_count == 1) {
-               if (t_active_call->call_conference)
-                       t_active_call->call_conference = FALSE;
-       }
+       if (t_active_call_count == 1)
+               t_active_call->call_conference = FALSE;
 }
 
 static gboolean __bt_hfp_on_call_hold_timeout(gpointer t_data)
index 3b58e16..f8579bf 100644 (file)
@@ -2,7 +2,7 @@
 
 Name:       bluetooth-agent
 Summary:    Bluetooth agent packages that support various external profiles
-Version:    0.1.1
+Version:    0.1.2
 Release:    1
 Group:      Network & Connectivity/Bluetooth
 License:    Apache-2.0