1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

pvscan: remove unused var warning

This commit is contained in:
David Teigland 2018-05-10 16:18:36 -05:00
parent 57bb46c5e7
commit d974644db7

View File

@ -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;