]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb2/free.c
tdb2: change API to return the error value.
[ccan] / ccan / tdb2 / free.c
index 97320b585d727d82796e725ef97d1f71e3461e30..d2285567eb0efdf56dfd8d96ec0650845ef403e0 100644 (file)
@@ -268,7 +268,6 @@ static tdb_off_t ftable_offset(struct tdb_context *tdb, unsigned int ftable)
        off = first_ftable(tdb);
        for (i = 0; i < ftable; i++) {
                if (TDB_OFF_IS_ERR(off)) {
-                       tdb->ecode = off;
                        break;
                }
                off = next_ftable(tdb, off);
@@ -392,7 +391,6 @@ static tdb_bool_err coalesce(struct tdb_context *tdb,
 
        ecode = add_free_record(tdb, off, end - off);
        if (ecode != TDB_SUCCESS) {
-               tdb->ecode = ecode;
                return ecode;
        }
        return true;