drivers: modem: hl7800: 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 23:02:18 +01:00 committed by Anas Nashif
commit 5e3d542862

View file

@ -4583,9 +4583,6 @@ static int offload_put(struct net_context *context)
}
allow_sleep(true);
sock->context->connect_cb = NULL;
sock->context->recv_cb = NULL;
sock->context->send_cb = NULL;
socket_put(sock);
net_context_unref(context);
if (sock->type == SOCK_STREAM) {