Fix typo in previous commit.

Also, inline lookup functions if possible.
This commit is contained in:
Thomas Arp 2020-03-07 23:24:32 +01:00
parent a60f0eefb8
commit fc223452e8

View file

@ -2994,13 +2994,13 @@ void init_lookup_table(void)
}
}
static struct lookup_table_t *get_bucket_head(long uid)
static inline struct lookup_table_t *get_bucket_head(long uid)
{
int bucket = (int) (uid & (BUCKET_COUNT - 1));
return &lookup_table[bucket];
}
static struct lookup_table_t *find_element_by_uid_in_lookup_table(long uid)
static inline struct lookup_table_t *find_element_by_uid_in_lookup_table(long uid)
{
struct lookup_table_t *lt = get_bucket_head(uid);