]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Sun, 4 Sep 2005 20:00:40 +0000 (20:00 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 4 Sep 2005 20:00:40 +0000 (20:00 +0000)
servers/slapd/backend.c

index 18feb7df24433419ff42dbc35ad5838084db8fbd..25e009e1ca56b1ba65d329f216c2770617fc47db 100644 (file)
@@ -1184,19 +1184,17 @@ be_entry_get_rw(
        int rw,
        Entry **e )
 {
-       int rc;
-
        *e = NULL;
 
-       if (op->o_bd == NULL) {
-               rc = LDAP_NO_SUCH_OBJECT;
-       } else if ( op->o_bd->be_fetch ) {
-               rc = ( op->o_bd->be_fetch )( op, ndn,
-                       oc, at, rw, e );
-       } else {
-               rc = LDAP_UNWILLING_TO_PERFORM;
+       if ( op->o_bd == NULL ) {
+               return LDAP_NO_SUCH_OBJECT;
        }
-       return rc;
+
+       if ( op->o_bd->be_fetch ) {
+               return op->o_bd->be_fetch( op, ndn, oc, at, rw, e );
+       }
+
+       return LDAP_UNWILLING_TO_PERFORM;
 }
 
 int