From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 6D0003858C60; Tue, 15 Mar 2022 18:41:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D0003858C60 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] nscd: Remove unused variable X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: d1d8b6753ae301982eab91e85bf657626afd8852 X-Git-Newrev: 6ecbe8538ec11a5bc06962e82ea6e5065283e8d3 Message-Id: <20220315184102.6D0003858C60@sourceware.org> Date: Tue, 15 Mar 2022 18:41:02 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2022 18:41:02 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=6ecbe8538ec11a5bc06962e82ea6e5065283e8d3 commit 6ecbe8538ec11a5bc06962e82ea6e5065283e8d3 Author: Adhemerval Zanella 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. */