X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Ftest%2Frun-15-append.c;fp=ccan%2Ftdb2%2Ftest%2Frun-15-append.c;h=36b6162fbd0802e783c6611be8fdaf081ee90661;hb=c02f63e60ca4c9778a1e635ffcd07d17fc8bf09d;hp=545175a4885cb5b3e289fd277ea29b69c8007825;hpb=323a9473c0aef80b8e18ef0c53529c8dfc29ec45;p=ccan diff --git a/ccan/tdb2/test/run-15-append.c b/ccan/tdb2/test/run-15-append.c index 545175a4..36b6162f 100644 --- a/ccan/tdb2/test/run-15-append.c +++ b/ccan/tdb2/test/run-15-append.c @@ -19,7 +19,7 @@ static tdb_off_t tdb_offset(struct tdb_context *tdb, struct tdb_data key) struct hash_info h; off = find_and_lock(tdb, key, F_RDLCK, &h, &rec, NULL); - if (unlikely(off == TDB_OFF_ERR)) + if (TDB_OFF_IS_ERR(off)) return 0; tdb_unlock_hashes(tdb, h.hlock_start, h.hlock_range, F_RDLCK); return off;