Bluetooth: GATT: Remove not needed variable
prev is not used. Change-Id: I735be33a3a763fcdee316fdf6cacfaa26e216210 Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
This commit is contained in:
parent
dc2ce98088
commit
8637c23e41
1 changed files with 1 additions and 4 deletions
|
@ -697,22 +697,19 @@ static uint8_t disconnected_cb(const struct bt_gatt_attr *attr, void *user_data)
|
|||
void bt_gatt_notification(struct bt_conn *conn, uint16_t handle,
|
||||
const void *data, uint16_t length)
|
||||
{
|
||||
struct bt_gatt_subscribe_params *params, *tmp, *prev = NULL;
|
||||
struct bt_gatt_subscribe_params *params, *tmp;
|
||||
|
||||
BT_DBG("handle 0x%04x length %u", handle, length);
|
||||
|
||||
SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&subscriptions, params, tmp, node) {
|
||||
if (bt_conn_addr_le_cmp(conn, ¶ms->_peer) ||
|
||||
handle != params->value_handle) {
|
||||
prev = params;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (params->notify(conn, params, data, length) ==
|
||||
BT_GATT_ITER_STOP) {
|
||||
bt_gatt_unsubscribe(conn, params);
|
||||
} else {
|
||||
prev = params;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue