]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Simplified code. No functionality changes expected.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Thu, 27 Oct 2011 05:24:19 +0000 (23:24 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Thu, 27 Oct 2011 05:24:19 +0000 (23:24 -0600)
!InDaemonMode() already implies both !UsingSmp() and IamWorkerProcess()
so !InDaemonMode() can be removed from the condition.

src/ipc/mem/Segment.cc

index ca9f28c13329effecdf56656faa91c9cf9e0ce5b..832261338caa6ac5082a55885b3cb4759c5f30c5 100644 (file)
@@ -221,7 +221,7 @@ Ipc::Mem::Segment::~Segment()
 bool
 Ipc::Mem::Segment::Enabled()
 {
-    return !InDaemonMode() || (!UsingSmp() && IamWorkerProcess());
+    return !UsingSmp() && IamWorkerProcess();
 }
 
 void