mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Remove dead assignment in dm_tree_node_add_mirror_target_log
'seg' is never used - remove it.
This commit is contained in:
parent
2e8d681cf2
commit
cbecd3cd11
@ -2199,9 +2199,7 @@ int dm_tree_node_add_mirror_target_log(struct dm_tree_node *node,
|
||||
int dm_tree_node_add_mirror_target(struct dm_tree_node *node,
|
||||
uint64_t size)
|
||||
{
|
||||
struct load_segment *seg;
|
||||
|
||||
if (!(seg = _add_segment(node, SEG_MIRRORED, size)))
|
||||
if (!_add_segment(node, SEG_MIRRORED, size))
|
||||
return_0;
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user