From a5c9cdfae0618f8e88a9ff2d61a7e6e1e464b2d6 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 15 Dec 2024 17:35:57 -0800 Subject: ipc: remove unnecessary check for null msg in fini --- src/sp/transport/ipc/ipc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/sp/transport/ipc/ipc.c b/src/sp/transport/ipc/ipc.c index c659b8fd..4a1ce0d2 100644 --- a/src/sp/transport/ipc/ipc.c +++ b/src/sp/transport/ipc/ipc.c @@ -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); } -- cgit v1.2.3-70-g09d2