1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

vgchange: drop redundant check

check for background polling option is performed from
within vgchange_background_polling routine as well.
This commit is contained in:
Ondrej Kozina 2016-01-12 10:15:10 +01:00
parent d09246a07d
commit d1e30ff0ba

View File

@ -998,8 +998,7 @@ static int vgchange_single(struct cmd_context *cmd, const char *vg_name,
}
if (!arg_count(cmd, refresh_ARG) &&
background_polling())
if (!vgchange_background_polling(cmd, vg))
!vgchange_background_polling(cmd, vg))
return_ECMD_FAILED;
if (arg_is_set(cmd, lockstart_ARG)) {