From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id E30E5394743A; Wed, 16 Mar 2022 18:03:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E30E5394743A 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: f3cf2ee43584a888461f15419b47cfcb46eaf615 X-Git-Newrev: f8c26c0674235631e249a88bad71f7ab95481de5 Message-Id: <20220316180321.E30E5394743A@sourceware.org> Date: Wed, 16 Mar 2022 18:03:21 +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: Wed, 16 Mar 2022 18:03:22 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f8c26c0674235631e249a88bad71f7ab95481de5 commit f8c26c0674235631e249a88bad71f7ab95481de5 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. */