]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Cleanup: IsConnOpen checks for NULL
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 19 Nov 2011 00:39:25 +0000 (17:39 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 19 Nov 2011 00:39:25 +0000 (17:39 -0700)
src/forward.cc

index f2bb3e22f47cd4e5bb2b39697d4b66b006f6bb8a..cdceafab70d4e9994689295ea3efe5f64a5d66f2 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++;