From 0f2a1393c69e3efa0c1ca97adc82787a0d93fab3 Mon Sep 17 00:00:00 2001 From: Joseph Perez Date: Wed, 4 Dec 2024 11:07:18 +0100 Subject: [PATCH] Update src/protocol/definitions/transport.c Co-authored-by: Alexander Bushnev --- src/protocol/definitions/transport.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/protocol/definitions/transport.c b/src/protocol/definitions/transport.c index aae4fc6c2..f98765d6a 100644 --- a/src/protocol/definitions/transport.c +++ b/src/protocol/definitions/transport.c @@ -184,14 +184,10 @@ _z_transport_message_t _z_t_msg_make_init_ack(z_whatami_t whatami, _z_id_t zid, } #if Z_FEATURE_FRAGMENTATION == 1 - bool has_patch = msg._body._init._patch != _Z_NO_PATCH; -#else - bool has_patch = false; -#endif - if (has_patch == true) { + if (msg._body._init._patch != _Z_NO_PATCH) { _Z_SET_FLAG(msg._header, _Z_FLAG_T_Z); } - +#endif return msg; }