From d85e24dfa3e754ddb4d2ce83040089f88350d7af Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 17 Feb 2010 20:08:07 +0000 Subject: [PATCH] fix return --- servers/slapd/back-bdb/tools.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/servers/slapd/back-bdb/tools.c b/servers/slapd/back-bdb/tools.c index ddde4da4f7..ee39853a2b 100644 --- a/servers/slapd/back-bdb/tools.c +++ b/servers/slapd/back-bdb/tools.c @@ -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( -- 2.39.5