You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2021/11/08 23:08:50 UTC

[trafficserver] branch 9.2.x updated: clang 13: Removed unused variable (#8493)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.2.x by this push:
     new 0fb508b  clang 13: Removed unused variable (#8493)
0fb508b is described below

commit 0fb508b97423585d75f9c259858a3bd746de4081
Author: Bryan Call <bc...@apache.org>
AuthorDate: Thu Nov 4 10:35:22 2021 -0700

    clang 13: Removed unused variable (#8493)
    
    (cherry picked from commit 1f5e5835272403ff8f19f15adf822d1e28e4fe3d)
---
 iocore/net/UnixUDPNet.cc | 2 --
 1 file changed, 2 deletions(-)

diff --git a/iocore/net/UnixUDPNet.cc b/iocore/net/UnixUDPNet.cc
index fa78290..2442348 100644
--- a/iocore/net/UnixUDPNet.cc
+++ b/iocore/net/UnixUDPNet.cc
@@ -963,7 +963,6 @@ UDPQueue::SendUDPPacket(UDPPacketInternal *p, int32_t /* pktLen ATS_UNUSED */)
 {
   struct msghdr msg;
   struct iovec iov[32];
-  int real_len = 0;
   int n, count, iov_len = 0;
 
   p->conn->lastSentPktStartTime = p->delivery_time;
@@ -981,7 +980,6 @@ UDPQueue::SendUDPPacket(UDPPacketInternal *p, int32_t /* pktLen ATS_UNUSED */)
   for (IOBufferBlock *b = p->chain.get(); b != nullptr; b = b->next.get()) {
     iov[iov_len].iov_base = static_cast<caddr_t>(b->start());
     iov[iov_len].iov_len  = b->size();
-    real_len += iov[iov_len].iov_len;
     iov_len++;
   }
   msg.msg_iov    = iov;