All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lidong Zhong <lzhong@suse.com>
To: lvm-devel@redhat.com
Subject: [PATCH] metadata: remove mdas variable
Date: Thu, 29 Jan 2015 15:16:53 +0800	[thread overview]
Message-ID: <1422515813-9565-1-git-send-email-lzhong@suse.com> (raw)

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



                 reply	other threads:[~2015-01-29  7:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1422515813-9565-1-git-send-email-lzhong@suse.com \
    --to=lzhong@suse.com \
    --cc=lvm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.