mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-07 15:41:24 -05:00
remove pointless test & var
This commit is contained in:
parent
4852bf8a58
commit
3bea8f5836
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue