drivers: modem: wncm14a2a: don't cleaup net_context members

There is no reason to clenaup members of net_context structure, as those
should be (and are) managed by net_context_put() implementation.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
Marcin Niestroj 2020-11-30 22:54:59 +01:00 committed by Anas Nashif
commit 33a90f20e9

View file

@ -1791,9 +1791,6 @@ static int offload_put(struct net_context *context)
/* clear last_socket_id */ /* clear last_socket_id */
ictx.last_socket_id = 0; ictx.last_socket_id = 0;
sock->context->connect_cb = NULL;
sock->context->recv_cb = NULL;
sock->context->send_cb = NULL;
socket_put(sock); socket_put(sock);
net_context_unref(context); net_context_unref(context);
if (sock->type == SOCK_STREAM) { if (sock->type == SOCK_STREAM) {