]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorHoward Chu <hyc@openldap.org>
Fri, 31 Mar 2006 22:24:39 +0000 (22:24 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 31 Mar 2006 22:24:39 +0000 (22:24 +0000)
servers/slapd/back-bdb/cache.c

index 1fdeafda92f90742a0e33f381d1569d477341ca2..db71ca70cea7e19f6ae097993412cb76ecc99242 100644 (file)
@@ -765,12 +765,12 @@ again:    ldap_pvt_thread_rdwr_rlock( &bdb->bi_cache.c_rwlock );
                }
 #else
                rc = hdb_cache_find_parent(op, tid, locker, id, eip );
-               if ( rc == 0 && *eip ) islocked = 1;
+               if ( rc == 0 ) islocked = 1;
 #endif
        }
 
        /* Ok, we found the info, do we have the entry? */
-       if ( *eip && rc == 0 ) {
+       if ( rc == 0 ) {
                if ( (*eip)->bei_state & CACHE_ENTRY_DELETED ) {
                        rc = DB_NOTFOUND;
                } else {