From 827572d77160ba4c688eb21a8cf95a400f75e554 Mon Sep 17 00:00:00 2001 From: Karl Fessel Date: Tue, 27 Apr 2021 10:16:15 +0200 Subject: [PATCH] examples/nanocoap_server: remove unneed case block --- examples/nanocoap_server/coap_handler.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/examples/nanocoap_server/coap_handler.c b/examples/nanocoap_server/coap_handler.c index c1682cd127..6b5c3c6d02 100644 --- a/examples/nanocoap_server/coap_handler.c +++ b/examples/nanocoap_server/coap_handler.c @@ -96,7 +96,6 @@ static ssize_t _riot_value_handler(coap_pkt_t *pkt, uint8_t *buf, size_t len, vo break; case COAP_PUT: case COAP_POST: - { if (pkt->payload_len < 16) { /* convert the payload to an integer and update the internal value */ char payload[16] = { 0 }; @@ -108,7 +107,6 @@ static ssize_t _riot_value_handler(coap_pkt_t *pkt, uint8_t *buf, size_t len, vo code = COAP_CODE_REQUEST_ENTITY_TOO_LARGE; } } - } return coap_reply_simple(pkt, code, buf, len, COAP_FORMAT_TEXT, (uint8_t*)rsp, p);