Skip to content

Commit 76407bc

Browse files
committed
sn_coap_builder: remove unnecessary code.
Fixes Coverity issue about unused variable.
1 parent b0b9553 commit 76407bc

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

features/frameworks/mbed-coap/source/sn_coap_builder.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -484,15 +484,6 @@ static uint8_t sn_coap_builder_options_calculate_jump_need(const sn_coap_hdr_s *
484484
}
485485
}
486486

487-
else {
488-
if (src_coap_msg_ptr->uri_path_ptr != 0) {
489-
previous_option_number = (COAP_OPTION_URI_PATH);
490-
}
491-
492-
if (src_coap_msg_ptr->content_format != COAP_CT_NONE) {
493-
previous_option_number = (COAP_OPTION_CONTENT_FORMAT);
494-
}
495-
}
496487
return needed_space;
497488
}
498489

0 commit comments

Comments
 (0)