From 7459cfc547347383180d1c92fd4b56cd51449d92 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 9 May 2022 09:37:47 +0200 Subject: [PATCH] Zap a redundant var --- pdns/misc.hh | 1 - pdns/packetcache.hh | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pdns/misc.hh b/pdns/misc.hh index bfadd206f5..5b7454e7fb 100644 --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -814,4 +814,3 @@ struct FDWrapper private: int d_fd{-1}; }; - diff --git a/pdns/packetcache.hh b/pdns/packetcache.hh index 2da156cb0b..e9c0fbf004 100644 --- a/pdns/packetcache.hh +++ b/pdns/packetcache.hh @@ -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; } -- 2.47.2