Restructured the code a bit to help my dump compiler not creating a jump table in ROM

This commit is contained in:
goldsimon 2011-06-07 19:07:00 +00:00
parent d30246dc05
commit 5a674f419d

View File

@ -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 */
}