From: Howard Chu Date: Sun, 24 Aug 2014 20:18:03 +0000 (+0100) Subject: ITS#7913 cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~34^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a054a194e8a0aadfac138fa441c8f67f5d7caa35;p=openldap ITS#7913 cleanup we already checked for data == NULL, drop unnecessary if --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index c87886da07..b7a6ac4894 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -5859,8 +5859,7 @@ fetchm: MDB_node *leaf = NODEPTR(mc->mc_pg[mc->mc_top], mc->mc_ki[mc->mc_top]); if (!F_ISSET(leaf->mn_flags, F_DUPDATA)) { MDB_GET_KEY(leaf, key); - if (data) - rc = mdb_node_read(mc->mc_txn, leaf, data); + rc = mdb_node_read(mc->mc_txn, leaf, data); break; } }