tdb: remove num_locks
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:54:44 +0000 (14:24 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Feb 2010 03:54:44 +0000 (14:24 +1030)
commit5945c4dc1eed81c189b62612ca3c003a36e0c247
tree53095201f916987162302a907ed6edc2768e172d
parent564427be4ef1615e0b386007f5adbcbc12887e24
tdb: remove num_locks

This was redundant before this patch series: it mirrored num_lockrecs
exactly.  It still does.

Also, skip useless branch when locks == 1: unconditional assignment is
cheaper anyway.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tdb/lock.c
ccan/tdb/tdb_private.h