Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Remove duplicated NULL check and debug message
@ 2011-03-04 18:33 Szymon Janc
  2011-03-04 18:58 ` Johan Hedberg
  0 siblings, 1 reply; 2+ messages in thread
From: Szymon Janc @ 2011-03-04 18:33 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: par-gunnar.p.hjalmdahl, henrik.possung, Szymon Janc

---
 src/sdpd-request.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/sdpd-request.c b/src/sdpd-request.c
index 668e190..1722f78 100644
--- a/src/sdpd-request.c
+++ b/src/sdpd-request.c
@@ -557,17 +557,13 @@ static int extract_attrs(sdp_record_t *rec, sdp_list_t *seq, sdp_buf_t *buf)
 	if (!rec)
 		return SDP_INVALID_RECORD_HANDLE;
 
-	if (seq) {
-		SDPDBG("Entries in attr seq : %d", sdp_list_len(seq));
-	} else {
-		SDPDBG("NULL attribute descriptor");
-	}
-
 	if (seq == NULL) {
 		SDPDBG("Attribute sequence is NULL");
 		return 0;
 	}
 
+	SDPDBG("Entries in attr seq : %d", sdp_list_len(seq));
+
 	sdp_gen_record_pdu(rec, &pdu);
 
 	for (; seq; seq = seq->next) {
-- 
1.7.0.4
on behalf of ST-Ericsson

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

end of thread, other threads:[~2011-03-04 18:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-04 18:33 [PATCH] Remove duplicated NULL check and debug message Szymon Janc
2011-03-04 18:58 ` Johan Hedberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox