1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Remove dead assignment in dm_tree_node_add_mirror_target_log

'seg' is never used - remove it.
This commit is contained in:
Zdenek Kabelac 2010-11-29 11:26:00 +00:00
parent 2e8d681cf2
commit cbecd3cd11

View File

@ -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, int dm_tree_node_add_mirror_target(struct dm_tree_node *node,
uint64_t size) uint64_t size)
{ {
struct load_segment *seg; if (!_add_segment(node, SEG_MIRRORED, size))
if (!(seg = _add_segment(node, SEG_MIRRORED, size)))
return_0; return_0;
return 1; return 1;