mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-21 04:20:48 +00:00
Restructured the code a bit to help my dump compiler not creating a jump table in ROM
This commit is contained in:
parent
fe2003124a
commit
59513b41e5
@ -177,7 +177,9 @@ tcpip_input(struct pbuf *p, struct netif *inp)
|
||||
#else /* LWIP_TCPIP_CORE_LOCKING_INPUT */
|
||||
struct tcpip_msg *msg;
|
||||
|
||||
if (sys_mbox_valid(&mbox)) {
|
||||
if (!sys_mbox_valid(&mbox)) {
|
||||
return ERR_VAL;
|
||||
}
|
||||
msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_INPKT);
|
||||
if (msg == NULL) {
|
||||
return ERR_MEM;
|
||||
@ -191,8 +193,6 @@ tcpip_input(struct pbuf *p, struct netif *inp)
|
||||
return ERR_MEM;
|
||||
}
|
||||
return ERR_OK;
|
||||
}
|
||||
return ERR_VAL;
|
||||
#endif /* LWIP_TCPIP_CORE_LOCKING_INPUT */
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user