From 06feae82f305b89e5c46c2471e5a8b0eb8d85577 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 1 Mar 2014 15:51:32 -0500 Subject: [PATCH] ck_hp_fifo: No need for volatile atomic stores on initialization. --- include/ck_hp_fifo.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/ck_hp_fifo.h b/include/ck_hp_fifo.h index 3b4bfd1..f2fae31 100644 --- a/include/ck_hp_fifo.h +++ b/include/ck_hp_fifo.h @@ -60,9 +60,8 @@ CK_CC_INLINE static void ck_hp_fifo_init(struct ck_hp_fifo *fifo, struct ck_hp_fifo_entry *stub) { - ck_pr_store_ptr(&stub->next, NULL); - ck_pr_store_ptr(&fifo->head, stub); - ck_pr_store_ptr(&fifo->tail, stub); + fifo->head = fifo->tail = stub; + stub->next = NULL; return; }