master - vgchange: drop redundant check

okozina <[email protected]>
Newsgroups dev.linux.lists.lvm-devel
Message-ID <[email protected]>
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=d1e30ff0baa3cf4ae0c582c29dc017d63ca99483
Commit:        d1e30ff0baa3cf4ae0c582c29dc017d63ca99483
Parent:        d09246a07d3e4d9940cdbbd017b1bc8319384081
Author:        Ondrej Kozina <[email protected]>
AuthorDate:    Tue Jan 12 10:15:10 2016 +0100
Committer:     Ondrej Kozina <[email protected]>
CommitterDate: Tue Jan 12 11:41:41 2016 +0100

vgchange: drop redundant check

check for background polling option is performed from
within vgchange_background_polling routine as well.
---
 tools/vgchange.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/tools/vgchange.c b/tools/vgchange.c
index 3aea8a4..62e602a 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)) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.