OSDN Git Service

heartrate: Remove unused measurement characteristic value handle
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Sat, 13 Oct 2012 15:18:22 +0000 (17:18 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Sat, 13 Oct 2012 16:47:55 +0000 (19:47 +0300)
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

index 81ff310..28c1932 100644 (file)
@@ -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,