Browse code

bb11338 - better placement of an assert().

Steven Morgan authored on 2015/06/18 06:13:09
Showing 1 changed files
... ...
@@ -85,9 +85,9 @@ static void cacheset_lru_remove(struct cache_set *map, size_t howmany)
85 85
     while (howmany--) {
86 86
 	struct cache_key *old;
87 87
 	assert(map->lru_head);
88
-	assert(!old->lru_prev);
89 88
 	/* Remove a key from the head of the list */
90 89
 	old = map->lru_head;
90
+	assert(!old->lru_prev);
91 91
 	map->lru_head = old->lru_next;
92 92
 	old->size = CACHE_KEY_DELETED;
93 93
 	/* This slot is now deleted, it is not empty,