public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2/tools lvscan.c
@ 2010-12-22 12:06 zkabelac
  0 siblings, 0 replies; only message in thread
From: zkabelac @ 2010-12-22 12:06 UTC (permalink / raw)
  To: lvm-devel, lvm2-cvs

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac@sourceware.org	2010-12-22 12:06:54

Modified files:
	tools          : lvscan.c 

Log message:
	Remove dead assignment of lv_total and lv_capasity_total
	
	Variables 'lv_total' and 'lv_capasity_total' are unused.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/lvscan.c.diff?cvsroot=lvm2&r1=1.43&r2=1.44

--- LVM2/tools/lvscan.c	2010/11/30 11:53:33	1.43
+++ LVM2/tools/lvscan.c	2010/12/22 12:06:54	1.44
@@ -19,8 +19,6 @@
 			 void *handle __attribute__((unused)))
 {
 	struct lvinfo info;
-	int lv_total = 0;
-	uint64_t lv_capacity_total = 0;
 	int inkernel, snap_active = 1;
 	struct lv_segment *snap_seg = NULL;
 	percent_t snap_percent;     /* fused, fsize; */
@@ -66,10 +64,6 @@
 		  display_size(cmd, lv->size),
 		  get_alloc_string(lv->alloc));
 
-	lv_total++;
-
-	lv_capacity_total += lv->size;
-
 	return ECMD_PROCESSED;
 }
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-22 12:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-22 12:06 LVM2/tools lvscan.c zkabelac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).