From: Adhemerval Zanella Date: Thu, 10 Mar 2022 20:16:56 +0000 (-0300) Subject: nscd: Remove unused variable X-Git-Tag: glibc-2.36~455 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=06e91f1a2ebfb2d8a4ffa7285079c77ece20b6aa;p=thirdparty%2Fglibc.git nscd: Remove unused variable --- diff --git a/nscd/mem.c b/nscd/mem.c index 4523f8221c3..66aa53ea01a 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. */