From 3bea8f5836068155f22f0c588f7a59a4ab952694 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sun, 20 Nov 2005 09:23:43 +0000 Subject: [PATCH] remove pointless test & var --- servers/slapd/backover.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.5