public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] nscd: Remove unused variable
@ 2022-03-23 18:35 Adhemerval Zanella
  0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2022-03-23 18:35 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=06e91f1a2ebfb2d8a4ffa7285079c77ece20b6aa

commit 06e91f1a2ebfb2d8a4ffa7285079c77ece20b6aa
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Thu Mar 10 17:16:56 2022 -0300

    nscd: Remove unused variable

Diff:
---
 nscd/mem.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/nscd/mem.c b/nscd/mem.c
index 4523f8221c..66aa53ea01 100644
--- a/nscd/mem.c
+++ b/nscd/mem.c
@@ -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.  */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-23 18:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-23 18:35 [glibc] nscd: Remove unused variable Adhemerval Zanella

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).