diff options
author | Alexandra Ellwood <lxs@mit.edu> | 2006-05-04 02:01:17 +0000 |
---|---|---|
committer | Alexandra Ellwood <lxs@mit.edu> | 2006-05-04 02:01:17 +0000 |
commit | 6948c382617723bf68bd4ab455336cf8c8b85e07 (patch) | |
tree | 80a132c041a3d40dd06c844e5630b711a38afbe3 | |
parent | 8d55212cf5ea2a8eb8d27f414242e6f299c7c5db (diff) | |
download | krb5-6948c382617723bf68bd4ab455336cf8c8b85e07.tar.gz krb5-6948c382617723bf68bd4ab455336cf8c8b85e07.tar.xz krb5-6948c382617723bf68bd4ab455336cf8c8b85e07.zip |
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
-rw-r--r-- | src/plugins/kdb/db2/libdb2/mpool/mpool.c | 3 |
1 files changed, 1 insertions, 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 |