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 committed by goldsimon
parent fe2003124a
commit 59513b41e5

View File

@ -177,7 +177,9 @@ tcpip_input(struct pbuf *p, struct netif *inp)
#else /* LWIP_TCPIP_CORE_LOCKING_INPUT */ #else /* LWIP_TCPIP_CORE_LOCKING_INPUT */
struct tcpip_msg *msg; 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); msg = (struct tcpip_msg *)memp_malloc(MEMP_TCPIP_MSG_INPKT);
if (msg == NULL) { if (msg == NULL) {
return ERR_MEM; return ERR_MEM;
@ -191,8 +193,6 @@ tcpip_input(struct pbuf *p, struct netif *inp)
return ERR_MEM; return ERR_MEM;
} }
return ERR_OK; return ERR_OK;
}
return ERR_VAL;
#endif /* LWIP_TCPIP_CORE_LOCKING_INPUT */ #endif /* LWIP_TCPIP_CORE_LOCKING_INPUT */
} }