Skip to content

Commit

Permalink
ipc: remove unnecessary check for null msg in fini
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Dec 16, 2024
1 parent fe8cab7 commit a5c9cdf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sp/transport/ipc/ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ ipc_pipe_fini(void *arg)
nni_aio_fini(&p->rx_aio);
nni_aio_fini(&p->tx_aio);
nni_aio_fini(&p->neg_aio);
if (p->rx_msg) {
nni_msg_free(p->rx_msg);
}
nni_msg_free(p->rx_msg);
nni_mtx_fini(&p->mtx);
}

Expand Down

0 comments on commit a5c9cdf

Please sign in to comment.