Bluetooth: ATT: Replace checks for CONFIG_BT_ATT_ENFORCE_FLOW
Make use of IS_ENABLED so the compiler do its job to remove any dead code. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
8d2cb14b17
commit
1ef9b20f61
1 changed files with 6 additions and 6 deletions
|
@ -171,9 +171,9 @@ void att_cfm_sent(struct bt_conn *conn, void *user_data)
|
||||||
|
|
||||||
BT_DBG("conn %p att %p", conn, att);
|
BT_DBG("conn %p att %p", conn, att);
|
||||||
|
|
||||||
#if defined(CONFIG_BT_ATT_ENFORCE_FLOW)
|
if (IS_ENABLED(CONFIG_BT_ATT_ENFORCE_FLOW)) {
|
||||||
atomic_clear_bit(att->flags, ATT_PENDING_CFM);
|
atomic_clear_bit(att->flags, ATT_PENDING_CFM);
|
||||||
#endif /* CONFIG_BT_ATT_ENFORCE_FLOW */
|
}
|
||||||
|
|
||||||
att_pdu_sent(conn, user_data);
|
att_pdu_sent(conn, user_data);
|
||||||
}
|
}
|
||||||
|
@ -184,9 +184,9 @@ void att_rsp_sent(struct bt_conn *conn, void *user_data)
|
||||||
|
|
||||||
BT_DBG("conn %p att %p", conn, att);
|
BT_DBG("conn %p att %p", conn, att);
|
||||||
|
|
||||||
#if defined(CONFIG_BT_ATT_ENFORCE_FLOW)
|
if (IS_ENABLED(CONFIG_BT_ATT_ENFORCE_FLOW)) {
|
||||||
atomic_clear_bit(att->flags, ATT_PENDING_RSP);
|
atomic_clear_bit(att->flags, ATT_PENDING_RSP);
|
||||||
#endif /* CONFIG_BT_ATT_ENFORCE_FLOW */
|
}
|
||||||
|
|
||||||
att_pdu_sent(conn, user_data);
|
att_pdu_sent(conn, user_data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue