HomeClusterLabs Projects

Refactor: libpacemaker: pcmk__create_migration_actions drop redundancy

Description

Refactor: libpacemaker: pcmk__create_migration_actions drop redundancy

custom_action()'s return value is guaranteed non-NULL.
pcmk__create_migration_actions() is the only caller that checks the
return value, and even it checks only the migrate_from and migrate_to
values. Drop those unnecessary checks.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Sep 14 2023, 8:28 PM
Parents
rP877faf50bba8: Doc: libpe_status: Document that custom_action() returns non-NULL
Branches
Unknown
Tags
Unknown