From: Alexandra Ellwood Date: Thu, 4 May 2006 02:01:17 +0000 (+0000) Subject: Removed the unnecessary and incorrect (due to operator precedence) "== MPOOL_INUSE". X-Git-Tag: krb5-1.5-alpha1~44 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6948c382617723bf68bd4ab455336cf8c8b85e07;p=krb5.git 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 --- 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