[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] LVM2/libdm libdm-deptree.c



CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac sourceware org	2010-11-29 11:26:00

Modified files:
	libdm          : libdm-deptree.c 

Log message:
	Remove dead assignment in dm_tree_node_add_mirror_target_log
	
	'seg' is never used - remove it.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-deptree.c.diff?cvsroot=lvm2&r1=1.87&r2=1.88

--- LVM2/libdm/libdm-deptree.c	2010/11/23 18:29:06	1.87
+++ LVM2/libdm/libdm-deptree.c	2010/11/29 11:26:00	1.88
@@ -2199,9 +2199,7 @@
 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]