Skip to content

Commit

Permalink
Refactor: libstonithd: don't set variable value that will never be used
Browse files Browse the repository at this point in the history
... to make static analysis happy
  • Loading branch information
kgaillot committed Jun 11, 2020
1 parent 6100dd8 commit a886051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fencing/st_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a886051

Please sign in to comment.