All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] metadata: remove mdas variable
@ 2015-01-29  7:16 Lidong Zhong
  0 siblings, 0 replies; only message in thread
From: Lidong Zhong @ 2015-01-29  7:16 UTC (permalink / raw)
  To: lvm-devel

This variable is not ever used in pvcreate_vol function

Signed-off-by: Lidong Zhong <lzhong@suse.com>
---
 lib/metadata/metadata.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/metadata/metadata.c b/lib/metadata/metadata.c
index 465eb84..3304631 100644
--- a/lib/metadata/metadata.c
+++ b/lib/metadata/metadata.c
@@ -1620,7 +1620,6 @@ struct physical_volume *pvcreate_vol(struct cmd_context *cmd, const char *pv_nam
 {
 	struct physical_volume *pv = NULL;
 	struct device *dev;
-	struct dm_list mdas;
 	struct pvcreate_params default_pp;
 	char buffer[64] __attribute__((aligned(8)));
 
@@ -1656,8 +1655,6 @@ struct physical_volume *pvcreate_vol(struct cmd_context *cmd, const char *pv_nam
 		goto bad;
 	}
 
-	dm_list_init(&mdas);
-
 	if (!(pv = pv_create(cmd, dev, pp->size, pp->data_alignment,
 			     pp->data_alignment_offset, pp->labelsector,
 			     pp->pvmetadatacopies, pp->pvmetadatasize,
-- 
1.8.1.4



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

only message in thread, other threads:[~2015-01-29  7:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-29  7:16 [PATCH] metadata: remove mdas variable Lidong Zhong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.