Commit 529158983ddde23ac422fc28939b0eb2bbaa04a1

Alexei Podtelezhnikov 2021-09-18T07:05:55

[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.

diff --git a/src/cache/ftccache.c b/src/cache/ftccache.c
index bae1481..5bbf329 100644
--- 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 (;;)
diff --git a/src/cache/ftccache.h b/src/cache/ftccache.h
index 7341093..4849b92 100644
--- a/src/cache/ftccache.h
+++ b/src/cache/ftccache.h
@@ -251,7 +251,7 @@ FT_BEGIN_HEADER
           goto NewNode_;                                                 \
         }                                                                \
         else                                                             \
-          _pnode = &((*_pnode)->link);                                   \
+          _pnode = &(*_pnode)->link;                                     \
       }                                                                  \
     }                                                                    \
                                                                          \