From: Wootak Jung Date: Mon, 21 Mar 2022 02:35:36 +0000 (+0900) Subject: Fix svace issue X-Git-Tag: accepted/tizen/unified/20220323.062650^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3655efb847daaf9c39642c218bbcb98697af5807;p=platform%2Fupstream%2Fbluez.git Fix svace issue Remove unnecessary check logic Change-Id: I39d8c4753d30be92c300bafb7f7aef11d4f7f9b9 --- 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)