From: Francesco Chemolli Date: Mon, 24 Dec 2012 13:39:37 +0000 (+0100) Subject: Removed useless check in store_swapout.cc X-Git-Tag: SQUID_3_4_0_1~423 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d98fdef8e4c86165003524276b5ac3d8af0c207;p=thirdparty%2Fsquid.git Removed useless check in store_swapout.cc Detected by Coverity Scan; fix by Tomas Hozza. --- diff --git a/src/store_swapout.cc b/src/store_swapout.cc index f148c68aa1..a893510295 100644 --- a/src/store_swapout.cc +++ b/src/store_swapout.cc @@ -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) { /*