Avoid return in case statement, makes function control flow equal to other case statement paths

This commit is contained in:
Dirk Ziegelmeier 2017-07-10 09:40:21 +02:00
parent 9130d37df7
commit 57b1471254

View File

@ -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;