]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/rdma: cleanup unused variables 58700/head
authorkshtsk <kyrylo.shatskyy@clyso.com>
Sat, 20 Jul 2024 23:55:22 +0000 (23:55 +0000)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Sun, 21 Jul 2024 00:07:59 +0000 (02:07 +0200)
Fixes: 2fb8be43fa2a758cc7934f7a82a48ad2d47d1112
Signed-off-by: kshtsk <kyrylo.shatskyy@clyso.com>
src/msg/async/rdma/RDMAConnectedSocketImpl.cc

index 6c79dc54f31ee2a52d61a00096f9a3e5388d6005..c3433fef61861657f616aa507839597e9679b7bf 100644 (file)
@@ -473,7 +473,6 @@ int RDMAConnectedSocketImpl::post_work_request(std::vector<Chunk*> &tx_buffers)
   ibv_send_wr iswr[tx_buffers.size()];
   uint32_t current_swr = 0;
   ibv_send_wr* pre_wr = NULL;
-  uint32_t num = 0; 
 
   // FIPS zeroization audit 20191115: these memsets are not security related.
   memset(iswr, 0, sizeof(iswr));
@@ -492,7 +491,6 @@ int RDMAConnectedSocketImpl::post_work_request(std::vector<Chunk*> &tx_buffers)
     iswr[current_swr].opcode = IBV_WR_SEND;
     iswr[current_swr].send_flags = IBV_SEND_SIGNALED;
 
-    num++;
     worker->perf_logger->inc(l_msgr_rdma_tx_bytes, isge[current_sge].length);
     if (pre_wr)
       pre_wr->next = &iswr[current_swr];