[lvm-devel] master - pvscan: remove unused var warning

David Teigland teigland at sourceware.org
Thu May 10 21:19:18 UTC 2018


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d974644db723cb608a2158a3a52b79194817572f
Commit:        d974644db723cb608a2158a3a52b79194817572f
Parent:        57bb46c5e7f8d6af1737af5ed1acae8abc37cded
Author:        David Teigland <teigland at redhat.com>
AuthorDate:    Thu May 10 16:18:36 2018 -0500
Committer:     David Teigland <teigland at redhat.com>
CommitterDate: Thu May 10 16:18:36 2018 -0500

pvscan: remove unused var warning

---
 tools/pvscan.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/tools/pvscan.c b/tools/pvscan.c
index f1f1f8a..8493eaa 100644
--- a/tools/pvscan.c
+++ b/tools/pvscan.c
@@ -302,7 +302,6 @@ static int _pvscan_cache(struct cmd_context *cmd, int argc, char **argv)
 	struct dm_list found_vgnames;
 	struct device *dev;
 	struct device_list *devl;
-	struct dev_filter *f;
 	const char *pv_name;
 	const char *reason = NULL;
 	int32_t major = -1;
@@ -507,8 +506,6 @@ static int _pvscan_cache(struct cmd_context *cmd, int argc, char **argv)
 	if (!dm_list_empty(&single_devs)) {
 		label_scan_devs(cmd, cmd->lvmetad_filter, &single_devs);
 
-		f = cmd->lvmetad_filter;
-
 		dm_list_iterate_items(devl, &single_devs) {
 			dev = devl->dev;
 
@@ -567,8 +564,6 @@ static int _pvscan_cache(struct cmd_context *cmd, int argc, char **argv)
 	if (!dm_list_empty(&single_devs)) {
 		label_scan_devs(cmd, cmd->lvmetad_filter, &single_devs);
 
-		f = cmd->lvmetad_filter;
-
 		dm_list_iterate_items(devl, &single_devs) {
 			dev = devl->dev;
 




More information about the lvm-devel mailing list