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:
parent
346ecb2a5a
commit
33a90f20e9
1 changed files with 0 additions and 3 deletions
|
@ -1791,9 +1791,6 @@ static int offload_put(struct net_context *context)
|
|||
/* clear last_socket_id */
|
||||
ictx.last_socket_id = 0;
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue