summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Kozina <okozina@redhat.com>2016-01-12 10:15:10 +0100
committerOndrej Kozina <okozina@redhat.com>2016-01-12 11:41:41 +0100
commitd1e30ff0baa3cf4ae0c582c29dc017d63ca99483 (patch)
treeb6fddf21cb26dec04067e4c1158419c522e106e0
parentd09246a07d3e4d9940cdbbd017b1bc8319384081 (diff)
downloadlvm2-d1e30ff0baa3cf4ae0c582c29dc017d63ca99483.tar.gz
vgchange: drop redundant check
check for background polling option is performed from within vgchange_background_polling routine as well.
-rw-r--r--tools/vgchange.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c
index 3aea8a485..62e602a6c 100644
--- a/tools/vgchange.c
+++ b/tools/vgchange.c
@@ -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)) {