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:
Luiz Augusto von Dentz 2019-10-04 11:59:43 +03:00 committed by Johan Hedberg
commit 1ef9b20f61

View file

@ -171,9 +171,9 @@ void att_cfm_sent(struct bt_conn *conn, void *user_data)
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);
#endif /* CONFIG_BT_ATT_ENFORCE_FLOW */
}
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);
#if defined(CONFIG_BT_ATT_ENFORCE_FLOW)
if (IS_ENABLED(CONFIG_BT_ATT_ENFORCE_FLOW)) {
atomic_clear_bit(att->flags, ATT_PENDING_RSP);
#endif /* CONFIG_BT_ATT_ENFORCE_FLOW */
}
att_pdu_sent(conn, user_data);
}