From 6948c382617723bf68bd4ab455336cf8c8b85e07 Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Thu, 4 May 2006 02:01:17 +0000 Subject: [PATCH] Removed the unnecessary and incorrect (due to operator precedence) "== MPOOL_INUSE". The previous code actually ended up checking if MPOOL_DIRTY (0x01) is set. ticket: new target_version: 1.5 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17974 dc483132-0cff-0310-8789-dd5450dbe970 --- src/plugins/kdb/db2/libdb2/mpool/mpool.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/kdb/db2/libdb2/mpool/mpool.c b/src/plugins/kdb/db2/libdb2/mpool/mpool.c index d172f71ba..c38388641 100644 --- a/src/plugins/kdb/db2/libdb2/mpool/mpool.c +++ b/src/plugins/kdb/db2/libdb2/mpool/mpool.c @@ -451,8 +451,7 @@ mpool_look(mp, pgno) head = &mp->hqh[HASHKEY(pgno)]; for (bp = head->cqh_first; bp != (void *)head; bp = bp->hq.cqe_next) - if ((bp->pgno == pgno) && - (bp->flags & MPOOL_INUSE == MPOOL_INUSE)) { + if ((bp->pgno == pgno) && (bp->flags & MPOOL_INUSE)) { #ifdef STATISTICS ++mp->cachehit; #endif -- 2.26.2