aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARM7-AT91SAM7X-LWIP-GCC
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-04 13:37:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-10-04 13:37:10 +0000
commitb0fb2171c4b933ed56411da780a4d2111bc9f4a1 (patch)
treedbc95648338cc3660ebee7f33e44472b6da43d5e /demos/ARM7-AT91SAM7X-LWIP-GCC
parentdd96bdcd511d158d80d2ef64b47c46fcb8219d5a (diff)
downloadChibiOS-b0fb2171c4b933ed56411da780a4d2111bc9f4a1.tar.gz
ChibiOS-b0fb2171c4b933ed56411da780a4d2111bc9f4a1.tar.bz2
ChibiOS-b0fb2171c4b933ed56411da780a4d2111bc9f4a1.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1205 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARM7-AT91SAM7X-LWIP-GCC')
-rw-r--r--demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/lwipthread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/lwipthread.c b/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/lwipthread.c
index 16957811e..73b670312 100644
--- a/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/lwipthread.c
+++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/lwip/lwipthread.c
@@ -272,9 +272,9 @@ msg_t lwip_thread(void *p) {
case ETHTYPE_PPPOE:
#endif /* PPPOE_SUPPORT */
/* full packet send to tcpip_thread to process */
- if (thisif.input(p, &thisif) != ERR_OK) {
- LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_input: IP input error\n"));
- }
+ if (thisif.input(p, &thisif) == ERR_OK)
+ break;
+ LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_input: IP input error\n"));
default:
pbuf_free(p);
}