mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: use struct initializer
This commit is contained in:
parent
a508786664
commit
6e2f706233
@ -3110,14 +3110,13 @@ int dm_tree_node_add_raid_target(struct dm_tree_node *node,
|
||||
uint64_t rebuilds,
|
||||
uint64_t flags)
|
||||
{
|
||||
struct dm_tree_node_raid_params params;
|
||||
|
||||
memset(¶ms, 0, sizeof(params));
|
||||
params.raid_type = raid_type;
|
||||
params.region_size = region_size;
|
||||
params.stripe_size = stripe_size;
|
||||
params.rebuilds = rebuilds;
|
||||
params.flags = flags;
|
||||
struct dm_tree_node_raid_params params = {
|
||||
.raid_type = raid_type,
|
||||
.region_size = region_size,
|
||||
.stripe_size = stripe_size,
|
||||
.rebuilds = rebuilds,
|
||||
.flags = flags
|
||||
};
|
||||
|
||||
return dm_tree_node_add_raid_target_with_params(node, size, ¶ms);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user