From 7880b57f3c48453921e56778bb1e442386602d81 Mon Sep 17 00:00:00 2001 From: "bernard.xiong" Date: Tue, 30 Nov 2010 05:37:03 +0000 Subject: [PATCH] remove LWIP_THREAD_MAGIC assert in LwIP porting. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1153 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/net/lwip/src/arch/sys_arch.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/net/lwip/src/arch/sys_arch.c b/components/net/lwip/src/arch/sys_arch.c index a7812e05e..8dec97328 100644 --- a/components/net/lwip/src/arch/sys_arch.c +++ b/components/net/lwip/src/arch/sys_arch.c @@ -263,12 +263,8 @@ struct sys_timeouts *sys_arch_timeouts(void) rt_thread_t self = rt_thread_self(); struct lwip_thread* lwip_th = (struct lwip_thread*)self->user_data; - if (lwip_th != RT_NULL) - { - RT_ASSERT(lwip_th->magic == LWIP_THREAD_MAGIC); - + if ((lwip_th != RT_NULL) && (lwip_th->magic == LWIP_THREAD_MAGIC)) return &(lwip_th->timeouts); - } return RT_NULL; } -- GitLab