From: Otto Moerbeek Date: Mon, 9 May 2022 07:37:47 +0000 (+0200) Subject: Zap a redundant var X-Git-Tag: auth-4.8.0-alpha0~57^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11613%2Fhead;p=thirdparty%2Fpdns.git Zap a redundant var --- 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; }