]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nscd: Remove unused variable
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 10 Mar 2022 20:16:56 +0000 (17:16 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 23 Mar 2022 18:33:17 +0000 (15:33 -0300)
nscd/mem.c

index 4523f8221c3ca6791aa39163d02b454698c7db98..66aa53ea01a0b8bb020fe4ef216d300528ef14fb 100644 (file)
@@ -218,12 +218,8 @@ gc (struct database_dyn *db)
 
   /* Determine the highest offset.  */
   BITMAP_T mask = HIGHBIT;
-  ref_t highref = (high * BITS - 1) * BLOCK_ALIGN;
   while ((mark[high - 1] & mask) == 0)
-    {
-      mask >>= 1;
-      highref -= BLOCK_ALIGN;
-    }
+    mask >>= 1;
 
   /* Now we can iterate over the MARK array and find bits which are not
      set.  These represent memory which can be recovered.  */