Tiny code tidy-up
authorIan Lynagh <igloo@earth.li>
Tue, 13 Apr 2010 01:11:47 +0000 (01:11 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 13 Apr 2010 01:11:47 +0000 (01:11 +0000)
GHC/Conc.lhs

index 97a9ef2..f86c205 100644 (file)
@@ -841,7 +841,7 @@ prodServiceThread = do
   -- conditions in which prodding is left at True but the server is
   -- blocked in select().
   was_set <- atomicModifyIORef prodding $ \b -> (True,b)
-  if (not (was_set)) then  wakeupIOManager else return ()
+  unless was_set wakeupIOManager
 
 -- Machinery needed to ensure that we only have one copy of certain
 -- CAFs in this module even when the base package is present twice, as