All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/17] HDP: Fix checking always constant error code
@ 2014-06-16  7:57 Andrei Emeltchenko
  2014-06-16  7:57 ` [PATCH 02/17] " Andrei Emeltchenko
                   ` (18 more replies)
  0 siblings, 19 replies; 42+ messages in thread
From: Andrei Emeltchenko @ 2014-06-16  7:57 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

sdp_set_access_protos() always returns 0, there is no sense to check for
error code. Fixes compile warnings.
---
 profiles/health/hdp_util.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/profiles/health/hdp_util.c b/profiles/health/hdp_util.c
index 58770b5..ff427a6 100644
--- a/profiles/health/hdp_util.c
+++ b/profiles/health/hdp_util.c
@@ -362,7 +362,7 @@ static gboolean set_sdp_services_uuid(sdp_record_t *record, HdpRole role)
 static gboolean register_service_protocols(struct hdp_adapter *adapter,
 						sdp_record_t *sdp_record)
 {
-	gboolean ret;
+	gboolean ret = TRUE;
 	uuid_t l2cap_uuid, mcap_c_uuid;
 	sdp_list_t *l2cap_list, *proto_list = NULL, *mcap_list = NULL;
 	sdp_list_t *access_proto_list = NULL;
@@ -425,11 +425,7 @@ 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)
-- 
1.8.3.2


^ permalink raw reply related	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2014-06-18 13:33 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-16  7:57 [PATCH 01/17] HDP: Fix checking always constant error code Andrei Emeltchenko
2014-06-16  7:57 ` [PATCH 02/17] " Andrei Emeltchenko
2014-06-16  7:57 ` [PATCH 03/17] android/HDP: Change scope of mdep Andrei Emeltchenko
2014-06-17 22:15   ` Szymon Janc
2014-06-16  7:57 ` [PATCH 04/17] android/gatt: Change DBG() to error() Andrei Emeltchenko
2014-06-17 21:22   ` Szymon Janc
2014-06-16  7:57 ` [PATCH 05/17] android/gatt: Fix wrong initial value Andrei Emeltchenko
2014-06-17 21:21   ` Szymon Janc
2014-06-18  8:46     ` Andrei Emeltchenko
2014-06-16  7:57 ` [PATCH 06/17] HDP: trivial: Make code more readable Andrei Emeltchenko
2014-06-16  7:57 ` [PATCH 07/17] android/gatt: Fix meory leak Andrei Emeltchenko
2014-06-16  7:57 ` [PATCH 08/17] HDP: Add length check Andrei Emeltchenko
2014-06-16  7:57 ` [PATCH 09/17] mcap: Fix possible overflow Andrei Emeltchenko
2014-06-17 21:11   ` Szymon Janc
2014-06-18  8:47     ` Andrei Emeltchenko
2014-06-16  7:57 ` [PATCH 10/17] android/hal-sco: Fix error code printing Andrei Emeltchenko
2014-06-17 21:49   ` Szymon Janc
2014-06-16  7:57 ` [PATCH 11/17] android/ipc-tester: Fix closing invalid fd Andrei Emeltchenko
2014-06-16  7:57 ` [PATCH 12/17] android/avrcp: Fix adding missing breaks Andrei Emeltchenko
2014-06-16  7:57 ` [PATCH 13/17] android/hal-audio: Remove dead code Andrei Emeltchenko
2014-06-17 20:27   ` Szymon Janc
2014-06-16  7:57 ` [PATCH 14/17] android/gatt: Fix error check Andrei Emeltchenko
2014-06-16  7:57 ` [PATCH 15/17] HDP: Fix possible memory leak Andrei Emeltchenko
2014-06-17 20:51   ` Szymon Janc
2014-06-18  8:52     ` Andrei Emeltchenko
2014-06-16  7:57 ` [PATCH 16/17] android/hal-sco: Remove unneeded statement Andrei Emeltchenko
2014-06-17 20:31   ` Szymon Janc
2014-06-16  7:57 ` [PATCH 17/17] android/hal-health: trivial: Remove empty line Andrei Emeltchenko
2014-06-17  7:20 ` [PATCH 01/17] HDP: Fix checking always constant error code Andrei Emeltchenko
2014-06-17 21:27 ` Szymon Janc
2014-06-18  8:54   ` Andrei Emeltchenko
2014-06-18 13:33 ` [PATCHv2 01/11] android/gatt: Change DBG() to error() Andrei Emeltchenko
2014-06-18 13:33   ` [PATCHv2 02/11] android/gatt: Fix wrong initial value Andrei Emeltchenko
2014-06-18 13:33   ` [PATCHv2 03/11] android/gatt: Fix memory leak Andrei Emeltchenko
2014-06-18 13:33   ` [PATCHv2 04/11] android/hal-health: trivial: Correct coding style Andrei Emeltchenko
2014-06-18 13:33   ` [PATCHv2 05/11] android/hal-msg: " Andrei Emeltchenko
2014-06-18 13:33   ` [PATCHv2 06/11] android/gatt: Fix warning by rearranging allocation Andrei Emeltchenko
2014-06-18 13:33   ` [PATCHv2 07/11] android/haltest: Auto-accept pairing Andrei Emeltchenko
2014-06-18 13:33   ` [PATCHv2 08/11] android/health: Remove unneeded check Andrei Emeltchenko
2014-06-18 13:33   ` [PATCHv2 09/11] android/health: Fix possible overflow Andrei Emeltchenko
2014-06-18 13:33   ` [PATCHv2 10/11] android/health: Fix missing error check Andrei Emeltchenko
2014-06-18 13:33   ` [PATCHv2 11/11] android/health: trivial: Remove empty line Andrei Emeltchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.