From: Howard Chu Date: Tue, 27 Nov 2001 22:10:01 +0000 (+0000) Subject: Cleanup a while() loop. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~826 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5d8f2b8ba61fcd33f2d29a816ef54acd0d14caa6;p=openldap Cleanup a while() loop. --- diff --git a/servers/slapd/back-bdb/nextid.c b/servers/slapd/back-bdb/nextid.c index 5f2b6e30a5..6cf6ea5c0d 100644 --- a/servers/slapd/back-bdb/nextid.c +++ b/servers/slapd/back-bdb/nextid.c @@ -43,12 +43,9 @@ int bdb_last_id( BackendDB *be, DB_TXN *tid ) rc = bdb->bi_id2entry->bdi_db->cursor( bdb->bi_id2entry->bdi_db, tid, &cursor, 0 ); - while (rc == 0) { + if (rc == 0) { rc = cursor->c_get(cursor, &key, &data, DB_LAST); cursor->c_close(cursor); - if (rc != 0) - break; - break; } switch(rc) {