]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Removed useless check in store_swapout.cc
authorFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 24 Dec 2012 13:39:37 +0000 (14:39 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Mon, 24 Dec 2012 13:39:37 +0000 (14:39 +0100)
Detected by Coverity Scan; fix by  Tomas Hozza.

src/store_swapout.cc

index f148c68aa170eac9532cb971cf4597232b40fec2..a8935102953563ad91ad8188e0ead23fd27f7f6e 100644 (file)
@@ -434,8 +434,7 @@ StoreEntry::mayStartSwapOut()
         }
 
         if (store_status != STORE_OK) {
-            const int64_t maxKnownSize = expectedEnd < 0 ?
-                                         mem_obj->availableForSwapOut() : expectedEnd;
+            const int64_t maxKnownSize = expectedEnd; // expectedEnd >= 0
             debugs(20, 7, HERE << "maxKnownSize= " << maxKnownSize);
             if (maxKnownSize < store_maxobjsize) {
                 /*