From: Remi Gacogne Date: Thu, 2 Nov 2017 14:05:18 +0000 (+0100) Subject: rec: Remove unneeded speed variable X-Git-Tag: auth-4.1.0-rc3~37^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5896%2Fhead;p=thirdparty%2Fpdns.git rec: Remove unneeded speed variable --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 5795cbf03b..d79636a5b1 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -692,9 +692,7 @@ vector SyncRes::getAddrs(const DNSName &qname, unsigned int depth, map speeds; auto& collection = t_sstorage.nsSpeeds[qname].d_collection; for(const auto& val: ret) { - double speed; - speed=collection[val].get(&d_now); - speeds[val]=speed; + speeds[val] = collection[val].get(&d_now); } t_sstorage.nsSpeeds[qname].purge(speeds);