From c4149c72b43b40f5994f8784173150ec57219c22 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Thu, 27 Dec 2012 19:43:50 -0500 Subject: [PATCH] ck_ring: Use regular assignment in type specialized ck_ring initialization. --- include/ck_ring.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/ck_ring.h b/include/ck_ring.h index b4ca667..58395a9 100644 --- a/include/ck_ring.h +++ b/include/ck_ring.h @@ -52,11 +52,11 @@ unsigned int size) \ { \ \ - ck_pr_store_uint(&ring->size, size); \ - ck_pr_store_uint(&ring->mask, size - 1); \ - ck_pr_store_uint(&ring->p_tail, 0); \ - ck_pr_store_uint(&ring->c_head, 0); \ - ck_pr_store_ptr(&ring->ring, buffer); \ + ring->size = size; \ + ring->mask = size - 1; \ + ring->p_tail = 0; \ + ring->c_head = 0; \ + ring->ring = buffer; \ return; \ } \ CK_CC_INLINE static unsigned int \