Skip to contentSkip to conversation

master - pvscan: remove unused var warning

PATCH David Teigland 1 participant 1 message May 10, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d974644db723cb608a2158a3a52b79194817572f
Commit:        d974644db723cb608a2158a3a52b79194817572f
Parent:        57bb46c5e7f8d6af1737af5ed1acae8abc37cded
Author:        David Teigland <[email protected]>
AuthorDate:    Thu May 10 16:18:36 2018 -0500
Committer:     David Teigland <[email protected]>
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(-)
tools/pvscan.c +0 -5
index f1f1f8a..8493eaa 100644
@@ -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;