[ofw] PATCH: remove false Assert from the shutter code

Tzachi Dar tzachid at mellanox.co.il
Sun Nov 15 09:54:23 PST 2009


signed off by: Firas Mahamid
 
Index: shutter.h
===================================================================
--- shutter.h (revision 2558)
+++ shutter.h (working copy)
@@ -110,8 +110,8 @@
 static inline void shutter_alive(shutter_t * p_shutter)
 {
     long res = 0;
-    ASSERT(p_shutter->cnt == -MAX_OPERATIONS);
- // Mark the counter as locked
+    
+ // Mark the counter as alive
  res = InterlockedExchangeAdd(&p_shutter->cnt, MAX_OPERATIONS);
  ASSERT(res < 0);
 }

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20091115/ea1347f4/attachment.html>


More information about the ofw mailing list