commit | 4cd29274729f6bfbb0202563929225bbbb861c1b | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Tue Oct 27 04:40:02 2020 -0400 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Dec 10 12:15:15 2020 -0500 |
tree | 27898f19996c479fbfaddd9c8bb2a1899c9507c5 | |
parent | ee55686efbd7de8dce8c1437c6e38fb4f5398c24 [diff] |
hmp: introduce cmd_available Combine the RUN_STATE_PRECONFIG and cmd_can_preconfig checks into a single function, to avoid repeating the same expression (or its negation after applying DeMorgan's rule) over and over again. Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>