diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-06-24 15:07:41 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-06-25 12:25:47 +0300 |
commit | 0a295fa8eac5cf3ceb1a6041102c3d64e6e37a31 (patch) | |
tree | 47c3b33fc6537eb8c82abbf310ee3ce86d979c57 /profiles/health | |
parent | faf90d0d52abf609bef26cf65e3aafa7f752d844 (diff) | |
download | bluez-0a295fa8eac5cf3ceb1a6041102c3d64e6e37a31.tar.gz |
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.
Diffstat (limited to 'profiles/health')
-rw-r--r-- | profiles/health/hdp_util.c | 5 |
1 files changed, 1 insertions, 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) |