From 9e348343953659c72f409db00b900957d2ca91ee Mon Sep 17 00:00:00 2001 From: DoHyun Pyun Date: Tue, 29 Nov 2016 16:37:32 +0900 Subject: [PATCH] Fix svace 2.2 issues Change-Id: Ica961fa70a2e80af891685b8ededca178285ffff Signed-off-by: DoHyun Pyun --- ag-agent/bluetooth-ag-manager.c | 14 +++++--------- packaging/bluetooth-agent.spec | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ag-agent/bluetooth-ag-manager.c b/ag-agent/bluetooth-ag-manager.c index d40220d..9503dbc 100755 --- a/ag-agent/bluetooth-ag-manager.c +++ b/ag-agent/bluetooth-ag-manager.c @@ -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) diff --git a/packaging/bluetooth-agent.spec b/packaging/bluetooth-agent.spec index 3b58e16..f8579bf 100644 --- a/packaging/bluetooth-agent.spec +++ b/packaging/bluetooth-agent.spec @@ -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 -- 2.7.4