]> git.sur5r.net Git - openldap/commitdiff
fix return
authorPierangelo Masarati <ando@openldap.org>
Wed, 17 Feb 2010 20:08:07 +0000 (20:08 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 17 Feb 2010 20:08:07 +0000 (20:08 +0000)
servers/slapd/back-bdb/tools.c

index ddde4da4f7d4b6d873f3a96f91a013f5e51c03ff..ee39853a2bb08852e8d82c101a310b1a1accd20b 100644 (file)
@@ -440,12 +440,9 @@ Entry*
 bdb_tool_entry_get( BackendDB *be, ID id )
 {
        Entry *e = NULL;
-       int rc;
 
-       rc = bdb_tool_entry_get_int( be, id, &e );
-       if ( rc == LDAP_SUCCESS ) {
-               return e;
-       }
+       (void)bdb_tool_entry_get_int( be, id, &e );
+       return e;
 }
 
 static int bdb_tool_next_id(