From: Ondrej Kozina Date: Tue, 12 Jan 2016 09:15:10 +0000 (+0100) Subject: vgchange: drop redundant check X-Git-Tag: v2_02_140~44 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=d1e30ff0baa3cf4ae0c582c29dc017d63ca99483;p=lvm2.git vgchange: drop redundant check check for background polling option is performed from within vgchange_background_polling routine as well. --- 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)) {