mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
[radix-tree] tidy up _degrade_to_n48
Shouldn't be any functional changes.
This commit is contained in:
parent
ebd2d7773f
commit
bb17302084
@ -597,16 +597,16 @@ static void _degrade_to_n48(struct node256 *n256, struct value *result)
|
||||
unsigned i, count = 0;
|
||||
struct node48 *n48 = zalloc(sizeof(*n48));
|
||||
|
||||
memset(n48->keys, 48, sizeof(n48->keys));
|
||||
|
||||
n48->nr_entries = n256->nr_entries;
|
||||
for (i = 0; i < 256; i++) {
|
||||
if (n256->values[i].type == UNSET)
|
||||
continue;
|
||||
n48->keys[i] = 48;
|
||||
|
||||
n48->keys[i] = count;
|
||||
n48->values[count] = n256->values[i];
|
||||
count++;
|
||||
else {
|
||||
n48->keys[i] = count;
|
||||
n48->values[count] = n256->values[i];
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
||||
free(n256);
|
||||
|
Loading…
Reference in New Issue
Block a user