From 5d8f2b8ba61fcd33f2d29a816ef54acd0d14caa6 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 27 Nov 2001 22:10:01 +0000 Subject: [PATCH] Cleanup a while() loop. --- servers/slapd/back-bdb/nextid.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) { -- 2.39.5