Minor TCPIP API call functions cleanup

This commit is contained in:
Dirk Ziegelmeier 2016-03-08 21:56:32 +01:00
parent f7a3d6cca5
commit 00975769a0
2 changed files with 4 additions and 4 deletions

View File

@ -339,12 +339,12 @@ tcpip_send_api_msg(tcpip_callback_fn fn, void *apimsg, sys_sem_t* sem)
err_t tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call *call)
{
#if LWIP_TCPIP_CORE_LOCKING
err_t err;
LOCK_TCPIP_CORE();
call->err = fn(call);
err = fn(call);
UNLOCK_TCPIP_CORE();
return call->err;
return err;
#else
if (sys_mbox_valid_val(mbox)) {
TCPIP_MSG_VAR_DECLARE(msg);
err_t err;

View File

@ -106,8 +106,8 @@ struct tcpip_api_call
tcpip_api_call_fn function;
#if !LWIP_TCPIP_CORE_LOCKING
sys_sem_t sem;
#endif /* !LWIP_TCPIP_CORE_LOCKING */
err_t err;
#endif /* !LWIP_TCPIP_CORE_LOCKING */
};
err_t tcpip_api_call(tcpip_api_call_fn fn, struct tcpip_api_call *call);