diff --git a/subsys/bluetooth/host/conn_internal.h b/subsys/bluetooth/host/conn_internal.h index d900f559f16..1b9993e4836 100644 --- a/subsys/bluetooth/host/conn_internal.h +++ b/subsys/bluetooth/host/conn_internal.h @@ -333,7 +333,7 @@ struct closure { } __packed; #if defined(CONFIG_BT_CONN_TX_USER_DATA_SIZE) -BUILD_ASSERT(sizeof(struct closure) < CONFIG_BT_CONN_TX_USER_DATA_SIZE); +BUILD_ASSERT(sizeof(struct closure) <= CONFIG_BT_CONN_TX_USER_DATA_SIZE); #endif static inline void make_closure(void *storage, void *cb, void *data)