]> git.sur5r.net Git - openldap/commitdiff
ITS#7913 cleanup
authorHoward Chu <hyc@symas.com>
Sun, 24 Aug 2014 20:18:03 +0000 (21:18 +0100)
committerHoward Chu <hyc@symas.com>
Sun, 24 Aug 2014 20:18:03 +0000 (21:18 +0100)
we already checked for data == NULL, drop unnecessary if

libraries/liblmdb/mdb.c

index c87886da074d95ac972447b87eadba206a8a38ac..b7a6ac4894447ab8abfbc99b4776e5d9e763e3a7 100644 (file)
@@ -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;
                        }
                }