sn_coap_builder: remove unnecessary code.

Fixes Coverity issue about unused variable.
pull/11696/head
int_szyk 2019-09-24 11:35:52 +02:00 committed by adbridge
parent 85f104755f
commit e7b5a4f32b
1 changed files with 0 additions and 9 deletions

View File

@ -484,15 +484,6 @@ static uint8_t sn_coap_builder_options_calculate_jump_need(const sn_coap_hdr_s *
}
}
else {
if (src_coap_msg_ptr->uri_path_ptr != 0) {
previous_option_number = (COAP_OPTION_URI_PATH);
}
if (src_coap_msg_ptr->content_format != COAP_CT_NONE) {
previous_option_number = (COAP_OPTION_CONTENT_FORMAT);
}
}
return needed_space;
}