From a886051f98a59d4a01a81a180e1e890518bb811e Mon Sep 17 00:00:00 2001 From: Ken Gaillot Date: Tue, 9 Jun 2020 12:56:12 -0500 Subject: [PATCH] Refactor: libstonithd: don't set variable value that will never be used ... to make static analysis happy --- lib/fencing/st_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fencing/st_client.c b/lib/fencing/st_client.c index 79bcbab2cb2..11543ccdbb1 100644 --- a/lib/fencing/st_client.c +++ b/lib/fencing/st_client.c @@ -2069,7 +2069,7 @@ stonith_api_validate(stonith_t *st, int call_options, const char *rsc_id, if (rc != pcmk_rc_ok) { crm_warn("Could not replace secret parameters for validation of %s: %s", agent, pcmk_rc_str(rc)); - rc = pcmk_rc2legacy(rc); + // rc is standard return value, don't return it in this function } #endif