]> git.sur5r.net Git - openldap/commitdiff
fix return
authorQuanah Gibson-Mount <quanah@openldap.org>
Thu, 15 Apr 2010 01:54:26 +0000 (01:54 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 15 Apr 2010 01:54:26 +0000 (01:54 +0000)
servers/slapd/back-bdb/tools.c

index 3bb4117c575e35f153c04b8c5dd0609618a26e97..b5fb605da7216d3dabf9edaa1862f6d1dbe264f1 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(