mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-30 15:15:05 +00:00
api_msg_c: remove superfluous NETCONN_SET_SAFE_ERR call before TCPIP_APIMSG_ACK
The TCPIP_APIMSG_ACK will call NETCONN_SET_SAFE_ERR for both LWIP_TCPIP_CORE_LOCKING and !LWIP_TCPIP_CORE_LOCKING cases. So remove superfluous NETCONN_SET_SAFE_ERR call before TCPIP_APIMSG_ACK. Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
668d461104
commit
ecf9d25ed0
@ -1747,7 +1747,6 @@ lwip_netconn_do_close(struct api_msg_msg *msg)
|
|||||||
{
|
{
|
||||||
msg->err = ERR_CONN;
|
msg->err = ERR_CONN;
|
||||||
}
|
}
|
||||||
NETCONN_SET_SAFE_ERR(msg->conn, msg->err);
|
|
||||||
TCPIP_APIMSG_ACK(msg);
|
TCPIP_APIMSG_ACK(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user