mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-17 17:10:03 +00:00
Avoid return in case statement, makes function control flow equal to other case statement paths
This commit is contained in:
parent
9130d37df7
commit
57b1471254
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user