[sheepdog] [PATCH] util: remove the assertion in uatomic_set_false()
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Tue Jan 29 08:50:41 CET 2013
Current uatomic_set_false() has an assertion which hopes the passed
boolean variable is true. But this cannot be hold on any boolean
variables. If callers of this function want this assertion, they
should prepare their own wrappers.
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
include/util.h | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/include/util.h b/include/util.h
index 0a89985..7776225 100644
--- a/include/util.h
+++ b/include/util.h
@@ -122,7 +122,6 @@ static inline bool uatomic_set_true(uatomic_bool *val)
static inline void uatomic_set_false(uatomic_bool *val)
{
- assert(uatomic_is_true(val));
uatomic_set(&val->val, 0);
}
--
1.7.2.5
More information about the sheepdog
mailing list