]> git.sur5r.net Git - openldap/commitdiff
remove pointless test & var
authorPierangelo Masarati <ando@openldap.org>
Sun, 20 Nov 2005 09:23:43 +0000 (09:23 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 20 Nov 2005 09:23:43 +0000 (09:23 +0000)
servers/slapd/backover.c

index 054edbe11ab1fbf3cdef36d4f3c903fd83e011e2..1a7f4bb34b5f9eb95929cfc22c2ebe653d078637 100644 (file)
@@ -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