diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2011-03-15 22:36:50 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2011-03-15 22:36:50 +0200 |
commit | 3c0786fea5eb8b497700e75b354a09c204268927 (patch) | |
tree | a87dbc222992187a5ffe41cfdfc0eba7354ccf48 | |
parent | c620d295f7da7d9d889f10be141003d5fa428b88 (diff) | |
download | bluez-3c0786fea5eb8b497700e75b354a09c204268927.tar.gz |
Fix minor coding style issues in attrib server code
-rw-r--r-- | src/attrib-server.c | 5 |
1 files changed, 0 insertions, 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; |