]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Zap a redundant var 11613/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 9 May 2022 07:37:47 +0000 (09:37 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 1 Jun 2022 09:23:55 +0000 (11:23 +0200)
pdns/misc.hh
pdns/packetcache.hh

index bfadd206f5acdc2d3704d4f5d4ddf7024533dd6e..5b7454e7fb116beb769d9c560696123855282740 100644 (file)
@@ -814,4 +814,3 @@ struct FDWrapper
 private:
   int d_fd{-1};
 };
-
index 2da156cb0b20ab343a877a6ba46da2008616bff8..e9c0fbf004fb92a6359eac55b837f8f833c8ba14 100644 (file)
@@ -133,9 +133,8 @@ public:
   {
     size_t pos = 0;
     uint32_t currentHash = hashHeaderAndQName(packet, pos);
-    size_t packetSize = packet.size();
 
-    if (pos >= packetSize) {
+    if (pos >= packet.size()) {
       return currentHash;
     }