1
0
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:
Joe Thornber 2018-09-20 14:28:47 +01:00
parent ebd2d7773f
commit bb17302084

View File

@ -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);