[ltt-dev] [PATCH] Fix typo in urcu/uatomic_generic.h
Jon Bernard
jbernard at debian.org
Sat Mar 6 17:42:42 EST 2010
Signed-off-by: Jon Bernard <jbernard at debian.org>
---
urcu/uatomic_generic.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/urcu/uatomic_generic.h b/urcu/uatomic_generic.h
index 93435d1..f65b398 100644
--- a/urcu/uatomic_generic.h
+++ b/urcu/uatomic_generic.h
@@ -158,9 +158,9 @@ unsigned long _uatomic_exchange(void *addr, unsigned long val, int len)
do {
old = uatomic_read((unsigned int *)addr);
- while (!__sync_bool_compare_and_swap_4(addr, old, val));
+ } while (!__sync_bool_compare_and_swap_4(addr, old, val));
- } return old;
+ return old;
}
#if (BITS_PER_LONG == 64)
case 8:
--
1.5.6.5
--
Jon
More information about the lttng-dev
mailing list