ref: 529158983ddde23ac422fc28939b0eb2bbaa04a1
parent: 0b429b609c4a5fec8568dc9716e920533e13ab74
author: Alexei Podtelezhnikov <apodtele@gmail.com>
date: Sat Sep 18 03:05:55 EDT 2021
[cache] Minor clean-ups. * src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): Remove parantheses. * src/cache/ftccache.c (FTC_Cache_Lookup): Ditto. (FTC_Cache_RemoveFaceID): Remove unnecessary variable.
--- a/src/cache/ftccache.c
+++ b/src/cache/ftccache.c
@@ -527,7 +527,7 @@
goto NewNode;
}
else
- pnode = &((*pnode)->link);
+ pnode = &(*pnode)->link;
}
}
@@ -570,8 +570,7 @@
count = cache->p + cache->mask + 1;
for ( i = 0; i < count; i++ )
{
- FTC_Node* bucket = cache->buckets + i;
- FTC_Node* pnode = bucket;
+ FTC_Node* pnode = cache->buckets + i;
for (;;)
--- a/src/cache/ftccache.h
+++ b/src/cache/ftccache.h
@@ -251,7 +251,7 @@
goto NewNode_; \
} \
else \
- _pnode = &((*_pnode)->link); \
+ _pnode = &(*_pnode)->link; \
} \
} \
\