From 0a295fa8eac5cf3ceb1a6041102c3d64e6e37a31 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Tue, 24 Jun 2014 15:07:41 +0300 Subject: [PATCH] HDP: Fix checking always constant error code sdp_set_access_protos() always returns 0, there is no sense to check for error code. Fixes compile warnings. --- profiles/health/hdp_util.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/profiles/health/hdp_util.c b/profiles/health/hdp_util.c index 47c464e5a..75ae439de 100644 --- a/profiles/health/hdp_util.c +++ b/profiles/health/hdp_util.c @@ -425,11 +425,8 @@ static gboolean register_service_protocols(struct hdp_adapter *adapter, goto end; } - if (sdp_set_access_protos(sdp_record, access_proto_list) < 0) { - ret = FALSE; - goto end; - } ret = TRUE; + sdp_set_access_protos(sdp_record, access_proto_list); end: if (l2cap_list != NULL) -- 2.47.3