Skip to content
Snippets Groups Projects
Verified Commit 8d6d7a6a authored by Tomas Krizek's avatar Tomas Krizek
Browse files

lib/generic/lru.h: replace asserts

parent 6b22b7fa
No related branches found
No related tags found
1 merge request!1146lib/utils: define kr_require(), kr_assume() macros
......@@ -51,7 +51,6 @@
#pragma once
#include <assert.h>
#include <stdalign.h>
#include <stddef.h>
#include <stdint.h>
......@@ -233,7 +232,7 @@ static inline void lru_reset_impl(struct lru *lru)
/** @internal See lru_capacity. */
static inline uint lru_capacity_impl(struct lru *lru)
{
assert(lru);
kr_require(lru);
return (1 << lru->log_groups) * LRU_ASSOC;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment