aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/refcount.c
diff options
context:
space:
mode:
Diffstat (limited to 'module/zfs/refcount.c')
-rw-r--r--module/zfs/refcount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/refcount.c b/module/zfs/refcount.c
index 600132f08..a659c0742 100644
--- a/module/zfs/refcount.c
+++ b/module/zfs/refcount.c
@@ -72,13 +72,13 @@ refcount_destroy_many(refcount_t *rc, uint64_t number)
reference_t *ref;
ASSERT(rc->rc_count == number);
- while (ref = list_head(&rc->rc_list)) {
+ while ((ref = list_head(&rc->rc_list))) {
list_remove(&rc->rc_list, ref);
kmem_cache_free(reference_cache, ref);
}
list_destroy(&rc->rc_list);
- while (ref = list_head(&rc->rc_removed)) {
+ while ((ref = list_head(&rc->rc_removed))) {
list_remove(&rc->rc_removed, ref);
kmem_cache_free(reference_history_cache, ref->ref_removed);
kmem_cache_free(reference_cache, ref);