From a054a194e8a0aadfac138fa441c8f67f5d7caa35 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 24 Aug 2014 21:18:03 +0100 Subject: [PATCH] ITS#7913 cleanup we already checked for data == NULL, drop unnecessary if --- libraries/liblmdb/mdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index c87886d..b7a6ac4 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; } }