From 3655efb847daaf9c39642c218bbcb98697af5807 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Mon, 21 Mar 2022 11:35:36 +0900 Subject: [PATCH] Fix svace issue Remove unnecessary check logic Change-Id: I39d8c4753d30be92c300bafb7f7aef11d4f7f9b9 --- src/device.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/device.c b/src/device.c index 71c9dad..6cb26dd 100644 --- a/src/device.c +++ b/src/device.c @@ -2653,8 +2653,7 @@ static GSList *create_pending_list(struct btd_device *dev, const char *uuid) return g_slist_prepend(dev->pending, service); #ifdef TIZEN_FEATURE_BLUEZ_MODIFY - else if ((service == NULL) && - (g_strcmp0(uuid, HFP_HS_UUID) == 0)) { + else if (g_strcmp0(uuid, HFP_HS_UUID) == 0) { DBG("HFP service not found check for HSP service"); service = find_connectable_service(dev, HSP_HS_UUID); if (service) -- 2.7.4