Skip to content

Commit

Permalink
Revert "rpmsg_socket: release tx buffer when send_oncopy failed"
Browse files Browse the repository at this point in the history
This reverts commit c0735f0.

rpsg_release_tx_buffer only exists in the newer openamp. Revert this when
taking the new openamp into use
  • Loading branch information
Jukka Laitinen committed Jan 18, 2023
1 parent 30bd331 commit 911724b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions net/rpmsg/rpmsg_sockif.c
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,6 @@ static ssize_t rpmsg_socket_send_continuous(FAR struct socket *psock,
nxmutex_unlock(&conn->sendlock);
if (ret < 0)
{
rpmsg_release_tx_buffer(&conn->ept, msg);
break;
}

Expand Down Expand Up @@ -1127,10 +1126,6 @@ static ssize_t rpmsg_socket_send_single(FAR struct socket *psock,

ret = rpmsg_sendto_nocopy(&conn->ept, msg, total, conn->ept.dest_addr);
nxmutex_unlock(&conn->sendlock);
if (ret < 0)
{
rpmsg_release_tx_buffer(&conn->ept, msg);
}

return ret > 0 ? len : ret;
}
Expand Down

0 comments on commit 911724b

Please sign in to comment.