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:
Axel Lin 2015-11-10 21:09:14 +08:00 committed by goldsimon
parent 668d461104
commit ecf9d25ed0

View File

@ -1747,7 +1747,6 @@ lwip_netconn_do_close(struct api_msg_msg *msg)
{
msg->err = ERR_CONN;
}
NETCONN_SET_SAFE_ERR(msg->conn, msg->err);
TCPIP_APIMSG_ACK(msg);
}