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

pvchange: no need to initialize selection handle directly, process_each_pv will do that automatically

This commit is contained in:
Peter Rajnoha 2015-02-13 09:28:24 +01:00
parent e1710f34bb
commit 1a72933143

View File

@ -172,8 +172,7 @@ int pvchange(struct cmd_context *cmd, int argc, char **argv)
goto out;
}
if (!(handle = init_processing_handle(cmd)) ||
(handle->internal_report_for_select && !init_selection_handle(cmd, handle, PVS))) {
if (!(handle = init_processing_handle(cmd))) {
log_error("Failed to initialize processing handle.");
ret = ECMD_FAILED;
goto out;