From 80c56d115be0acb21d04f292ddddfa21bc4a0b3e Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Tue, 14 Aug 2012 23:16:36 -0400 Subject: [PATCH] ck_ring: Do not use volatile load for parametric ck_ring_size. --- include/ck_ring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_ring.h b/include/ck_ring.h index b96d354..4f1ad40 100644 --- a/include/ck_ring.h +++ b/include/ck_ring.h @@ -74,7 +74,7 @@ ck_ring_capacity_##name(struct ck_ring_##name *ring) \ { \ \ - return ck_pr_load_uint(&ring->size); \ + return ring->size; \ } \ CK_CC_INLINE static bool \ ck_ring_enqueue_spsc_##name(struct ck_ring_##name *ring, \