]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup: IsConnOpen checks for NULL
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 24 Nov 2011 06:59:46 +0000 (23:59 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 24 Nov 2011 06:59:46 +0000 (23:59 -0700)
src/forward.cc

index 83c2486e79935c9caba897d43c824088efdcb12d..7bd660699f5fb058e251ac4a837dfce383838ed9 100644 (file)
@@ -863,7 +863,7 @@ FwdState::connectStart()
     Comm::ConnectionPointer temp = fwdPconnPool->pop(serverDestinations[0], host, checkRetriable());
 
     // if we found an open persistent connection to use. use it.
-    if (temp != NULL && Comm::IsConnOpen(temp)) {
+    if (Comm::IsConnOpen(temp)) {
         serverConn = temp;
         debugs(17, 3, HERE << "reusing pconn " << serverConnection());
         n_tries++;