]> sourceware.org Git - lvm2.git/commitdiff
vgchange: drop redundant check
authorOndrej Kozina <okozina@redhat.com>
Tue, 12 Jan 2016 09:15:10 +0000 (10:15 +0100)
committerOndrej Kozina <okozina@redhat.com>
Tue, 12 Jan 2016 10:41:41 +0000 (11:41 +0100)
check for background polling option is performed from
within vgchange_background_polling routine as well.

tools/vgchange.c

index 3aea8a485c62a7662835cb2594565b18f1531134..62e602a6ca9e265a4c847d9671246683215589f1 100644 (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)) {
This page took 0.035737 seconds and 5 git commands to generate.