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:
parent
57bb46c5e7
commit
d974644db7
@ -302,7 +302,6 @@ static int _pvscan_cache(struct cmd_context *cmd, int argc, char **argv)
|
|||||||
struct dm_list found_vgnames;
|
struct dm_list found_vgnames;
|
||||||
struct device *dev;
|
struct device *dev;
|
||||||
struct device_list *devl;
|
struct device_list *devl;
|
||||||
struct dev_filter *f;
|
|
||||||
const char *pv_name;
|
const char *pv_name;
|
||||||
const char *reason = NULL;
|
const char *reason = NULL;
|
||||||
int32_t major = -1;
|
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)) {
|
if (!dm_list_empty(&single_devs)) {
|
||||||
label_scan_devs(cmd, cmd->lvmetad_filter, &single_devs);
|
label_scan_devs(cmd, cmd->lvmetad_filter, &single_devs);
|
||||||
|
|
||||||
f = cmd->lvmetad_filter;
|
|
||||||
|
|
||||||
dm_list_iterate_items(devl, &single_devs) {
|
dm_list_iterate_items(devl, &single_devs) {
|
||||||
dev = devl->dev;
|
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)) {
|
if (!dm_list_empty(&single_devs)) {
|
||||||
label_scan_devs(cmd, cmd->lvmetad_filter, &single_devs);
|
label_scan_devs(cmd, cmd->lvmetad_filter, &single_devs);
|
||||||
|
|
||||||
f = cmd->lvmetad_filter;
|
|
||||||
|
|
||||||
dm_list_iterate_items(devl, &single_devs) {
|
dm_list_iterate_items(devl, &single_devs) {
|
||||||
dev = devl->dev;
|
dev = devl->dev;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user