From 57b1471254b2f66de71c390bca82a587d2f82f47 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Mon, 10 Jul 2017 09:40:21 +0200 Subject: [PATCH] Avoid return in case statement, makes function control flow equal to other case statement paths --- src/core/pbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index 7663e089..1e4e3f32 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -227,7 +227,7 @@ pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type) switch (type) { case PBUF_REF: /* fall through */ case PBUF_ROM: - return pbuf_alloc_reference(NULL, length, type); + p = pbuf_alloc_reference(NULL, length, type); case PBUF_POOL: { struct pbuf *q, *last;