diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-01-19 22:38:17 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-01-22 15:30:37 +0100 |
commit | 5485ec10e2b592f48f5208d8b5e3cf5e0f0eb70d (patch) | |
tree | a3ea311312635afb8755ac7df534596f54bdbbc3 | |
parent | cddeaed6e956b181faf665f8af789cb517259bc2 (diff) | |
download | lvm2-5485ec10e2b592f48f5208d8b5e3cf5e0f0eb70d.tar.gz |
pvscan: make ret value defined
-rw-r--r-- | tools/pvscan.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c index 55c708682..0ad901c13 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -1020,11 +1020,10 @@ static int _pvscan_aa(struct cmd_context *cmd, struct pvscan_aa_params *pp, struct processing_handle *handle = NULL; struct dm_str_list *sl, *sl2; int no_quick = 0; - int ret; + int ret = ECMD_FAILED; if (!(handle = init_processing_handle(cmd, NULL))) { log_error("Failed to initialize processing handle."); - ret = ECMD_FAILED; goto out; } |