ntdb: remove unused local variable.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 8 Oct 2012 00:56:43 +0000 (11:26 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 8 Oct 2012 02:43:36 +0000 (04:43 +0200)
Reported-by: Matthieu Patou <mat@samba.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date(master): Mon Oct  8 04:43:37 CEST 2012 on sn-devel-104

lib/ntdb/free.c

index 470c3765d90fb22213862a0adf77d9c7acd9c5fe..0d0e25f105348a0553c006493821e85483aeba42 100644 (file)
@@ -683,7 +683,6 @@ static ntdb_off_t lock_and_alloc(struct ntdb_context *ntdb,
 
        while (off) {
                const struct ntdb_free_record *r;
-               ntdb_len_t len;
                ntdb_off_t next;
 
                r = ntdb_access_read(ntdb, off, sizeof(*r), true);
@@ -715,7 +714,6 @@ static ntdb_off_t lock_and_alloc(struct ntdb_context *ntdb,
                multiplier *= 1.01;
 
                next = r->next;
-               len = frec_len(r);
                ntdb_access_release(ntdb, r);
                off = next;
        }