From 3c0786fea5eb8b497700e75b354a09c204268927 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 15 Mar 2011 22:36:50 +0200 Subject: [PATCH] Fix minor coding style issues in attrib server code --- src/attrib-server.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/attrib-server.c b/src/attrib-server.c index 815151422..b076d9869 100644 --- a/src/attrib-server.c +++ b/src/attrib-server.c @@ -627,7 +627,6 @@ static struct attribute *find_primary_range(uint16_t start, uint16_t *end) return NULL; l = g_slist_find_custom(database, GUINT_TO_POINTER(h), handle_cmp); - if (!l) return NULL; @@ -1050,7 +1049,6 @@ static gboolean register_core_services(void) attrib_db_add(appearance_handle, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 2); gap_sdp_handle = attrib_create_sdp(0x0001, "Generic Access Profile"); - if (gap_sdp_handle == 0) { error("Failed to register GAP service record"); goto failed; @@ -1088,7 +1086,6 @@ int attrib_server_init(void) BT_IO_OPT_PSM, GATT_PSM, BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_LOW, BT_IO_OPT_INVALID); - if (l2cap_io == NULL) { error("%s", gerr->message); g_error_free(gerr); @@ -1108,7 +1105,6 @@ int attrib_server_init(void) BT_IO_OPT_CID, GATT_CID, BT_IO_OPT_SEC_LEVEL, BT_IO_SEC_LOW, BT_IO_OPT_INVALID); - if (le_io == NULL) { error("%s", gerr->message); g_error_free(gerr); @@ -1187,7 +1183,6 @@ uint32_t attrib_create_sdp(uint16_t handle, const char *name) return 0; record = server_record_new(&svc, handle, end); - if (record == NULL) return 0; -- 2.47.3