From 82caa9007e01fe40eecbebcf8457f01a5d1cdf9c Mon Sep 17 00:00:00 2001 From: Risto Huhtala Date: Mon, 30 Dec 2019 09:52:45 +0200 Subject: [PATCH] Code review fix. Removing extra spaces --- features/frameworks/mbed-coap/source/sn_coap_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/frameworks/mbed-coap/source/sn_coap_parser.c b/features/frameworks/mbed-coap/source/sn_coap_parser.c index d53cd5984f..1a892d6f37 100644 --- a/features/frameworks/mbed-coap/source/sn_coap_parser.c +++ b/features/frameworks/mbed-coap/source/sn_coap_parser.c @@ -310,7 +310,7 @@ static int8_t sn_coap_parser_options_parse(struct coap_s *handle, uint8_t **pack option_number = *(*packet_data_pptr + 1) + 13; (*packet_data_pptr)++; } else if (option_number == 14) { - if ( message_left>= 2){ + if (message_left >= 2){ option_number = *(*packet_data_pptr + 2); option_number += (*(*packet_data_pptr + 1) << 8) + 269; (*packet_data_pptr) += 2; @@ -342,7 +342,7 @@ static int8_t sn_coap_parser_options_parse(struct coap_s *handle, uint8_t **pack option_len = *(*packet_data_pptr + 1) + 13; (*packet_data_pptr)++; } else if (option_len == 14) { - if ( message_left>= 2){ + if (message_left >= 2){ option_len = *(*packet_data_pptr + 2); option_len += (*(*packet_data_pptr + 1) << 8) + 269; (*packet_data_pptr) += 2;