tdb_chainunlock: ignore return value.
[nivanova/samba-autobuild/.git] / source3 / lib / dbwrap_tdb.c
index 2ed368ee97b558b0e50d0ca179204eee75e8099d..0832b06a15b50ee6d480ee08098ea5f325d370ee 100644 (file)
@@ -43,10 +43,7 @@ static int db_tdb_record_destr(struct db_record* data)
                   hex_encode_talloc(data, (unsigned char *)data->key.dptr,
                              data->key.dsize)));
 
-       if (tdb_chainunlock(ctx->wtdb->tdb, data->key) != 0) {
-               DEBUG(0, ("tdb_chainunlock failed\n"));
-               return -1;
-       }
+       tdb_chainunlock(ctx->wtdb->tdb, data->key);
        return 0;
 }