[PATCH 2/2] heartrate: Remove unused measurement characteristic value handle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since notification handler is now registered only for measurement
characteristic value handle it's no longer needed to keep this handle.
---
 profiles/heartrate/heartrate.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/profiles/heartrate/heartrate.c b/profiles/heartrate/heartrate.c
index 81ff310..28c1932 100644
--- a/profiles/heartrate/heartrate.c
+++ b/profiles/heartrate/heartrate.c
@@ -66,7 +66,6 @@ struct heartrate {
 
 	struct att_range		*svc_range;	/* primary svc range */
 
-	uint16_t			measurement_val_handle;
 	uint16_t			measurement_ccc_handle;
 	uint16_t			hrcp_val_handle;
 
@@ -478,8 +477,6 @@ static void discover_char_cb(GSList *chars, guint8 status, gpointer user_data)
 			struct gatt_char *c_next =
 				(chars->next ? chars->next->data : NULL);
 
-			hr->measurement_val_handle = c->value_handle;
-
 			hr->attionotid = g_attrib_register(hr->attrib,
 						ATT_OP_HANDLE_NOTIFY,
 						c->value_handle,
-- 
1.7.11.3

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux