* [COMMITTED] nscd: Remove unused variable
@ 2022-03-23 18:37 Adhemerval Zanella
0 siblings, 0 replies; only message in thread
From: Adhemerval Zanella @ 2022-03-23 18:37 UTC (permalink / raw)
To: libc-alpha
---
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. */
--
2.32.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-23 18:38 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:37 [COMMITTED] 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).