From: Pierangelo Masarati Date: Sun, 20 Nov 2005 09:23:43 +0000 (+0000) Subject: remove pointless test & var X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~766 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3bea8f5836068155f22f0c588f7a59a4ab952694;p=openldap remove pointless test & var --- diff --git a/servers/slapd/backover.c b/servers/slapd/backover.c index 054edbe11a..1a7f4bb34b 100644 --- a/servers/slapd/backover.c +++ b/servers/slapd/backover.c @@ -795,7 +795,6 @@ overlay_is_inst( BackendDB *be, const char *over_type ) int overlay_register_control( BackendDB *be, const char *oid ) { - int rc = 0; int gotit = 0; int cid; @@ -818,12 +817,12 @@ overlay_register_control( BackendDB *be, const char *oid ) } - if ( rc == 0 && !gotit ) { + if ( !gotit ) { be->be_ctrls[ cid ] = 1; be->be_ctrls[ SLAP_MAX_CIDS ] = 1; } - return rc; + return 0; } void