From 876393a2263c2d5de441d357a22db0db0e80a81f Mon Sep 17 00:00:00 2001
From: wuchangye <wuchangye@huawei.com>
Date: Sat, 2 Dec 2023 13:46:03 +0800
Subject: [PATCH] fix compilation error

---
 src/lstack/core/lstack_thread_rpc.c    | 1 -
 src/lstack/include/lstack_thread_rpc.h | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/src/lstack/core/lstack_thread_rpc.c b/src/lstack/core/lstack_thread_rpc.c
index 03e014d..f23d935 100644
--- a/src/lstack/core/lstack_thread_rpc.c
+++ b/src/lstack/core/lstack_thread_rpc.c
@@ -94,7 +94,6 @@ static inline __attribute__((always_inline)) int32_t rpc_sync_call(lockless_queu
 void poll_rpc_msg(struct protocol_stack *stack, uint32_t max_num)
 {
     struct rpc_msg *msg = NULL;
-    struct lwip_sock *sock = NULL;
 
     while (max_num--) {
         lockless_queue_node *node = lockless_queue_mpsc_pop(&stack->rpc_queue);
diff --git a/src/lstack/include/lstack_thread_rpc.h b/src/lstack/include/lstack_thread_rpc.h
index 80e254f..aa8c451 100644
--- a/src/lstack/include/lstack_thread_rpc.h
+++ b/src/lstack/include/lstack_thread_rpc.h
@@ -96,9 +96,6 @@ static inline __attribute__((always_inline)) void rpc_call(lockless_queue *queue
 static inline __attribute__((always_inline)) void rpc_msg_free(struct rpc_msg *msg)
 {
     pthread_spin_destroy(&msg->lock);
-
-    msg->self_release = 0;
-
     rte_mempool_put(msg->pool->rpc_pool, (void *)msg);
 }
 
-- 
2.27.0

