Blob Blame History Raw
From d3c67afdb612491325accbd23f1c86d29afcf1ff Mon Sep 17 00:00:00 2001
From: Ken Gaillot <kgaillot@redhat.com>
Date: Thu, 8 Jun 2017 17:50:42 -0500
Subject: [PATCH] Low: libpe_status: get rid of redundant test

unimportant, but makes static analysis happy
---
 lib/pengine/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/pengine/utils.c b/lib/pengine/utils.c
index 44fbb51..5bd905d 100644
--- a/lib/pengine/utils.c
+++ b/lib/pengine/utils.c
@@ -2032,7 +2032,7 @@ rsc_action_digest_cmp(resource_t * rsc, xmlNode * xml_op, node_t * node,
     get_rsc_attributes(local_rsc_params, rsc, node, data_set);
     data->params_all = create_xml_node(NULL, XML_TAG_PARAMS);
 
-    if(fix_remote_addr(rsc) && node) {
+    if (fix_remote_addr(rsc)) {
         // REMOTE_CONTAINER_HACK: Allow remote nodes that start containers with pacemaker remote inside
         crm_xml_add(data->params_all, "addr", node->details->uname);
         crm_trace("Fixing addr for %s on %s", rsc->id, node->details->uname);
-- 
1.8.3.1