From 9dc9fc6c674fe1cc1c63e0044e983aed04914049 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Feb 24 2021 16:08:57 +0000 Subject: Refactor: tools: Remove an unnecessary conditional in cib_connect. --- diff --git a/tools/crm_mon.c b/tools/crm_mon.c index b8ba56b..36249e8 100644 --- a/tools/crm_mon.c +++ b/tools/crm_mon.c @@ -834,17 +834,14 @@ cib_connect(gboolean full) } if (rc == pcmk_ok && full) { - if (rc == pcmk_ok) { - rc = cib->cmds->set_connection_dnotify(cib, mon_cib_connection_destroy_regular); - if (rc == -EPROTONOSUPPORT) { - print_as - (output_format, "Notification setup not supported, won't be able to reconnect after failure"); - if (output_format == mon_output_console) { - sleep(2); - } - rc = pcmk_ok; + rc = cib->cmds->set_connection_dnotify(cib, mon_cib_connection_destroy_regular); + if (rc == -EPROTONOSUPPORT) { + print_as + (output_format, "Notification setup not supported, won't be able to reconnect after failure"); + if (output_format == mon_output_console) { + sleep(2); } - + rc = pcmk_ok; } if (rc == pcmk_ok) {