From 06d1ada8701961928f6f7c502822fbbe928920c5 Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Wed, 8 Jul 2015 22:21:25 +0000 Subject: [PATCH] seq: use seq_consistent_nomb in seq_consistent Constify seqp argument for seq_consistent_nomb. No functional changes. --- sys/sys/seq.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/sys/seq.h b/sys/sys/seq.h index c5dcaeb5a8bb..f54a4a979623 100644 --- a/sys/sys/seq.h +++ b/sys/sys/seq.h @@ -111,18 +111,18 @@ seq_read(const seq_t *seqp) } static __inline seq_t -seq_consistent(const seq_t *seqp, seq_t oldseq) +seq_consistent_nomb(const seq_t *seqp, seq_t oldseq) { - atomic_thread_fence_acq(); return (*seqp == oldseq); } static __inline seq_t -seq_consistent_nomb(seq_t *seqp, seq_t oldseq) +seq_consistent(const seq_t *seqp, seq_t oldseq) { - return (*seqp == oldseq); + atomic_thread_fence_acq(); + return (seq_consistent_nomb(seqp, oldseq)); } #endif /* _KERNEL */