]> xenbits.xensource.com Git - libvirt.git/commit
util: eliminate pointless switch in virFirewallApplyRule
authorLaine Stump <laine@redhat.com>
Tue, 16 Nov 2021 17:19:18 +0000 (12:19 -0500)
committerLaine Stump <laine@redhat.com>
Mon, 13 Dec 2021 18:37:31 +0000 (13:37 -0500)
commit9e8e639fd70e4b9f414a0e7fd35229a8a4a447d7
treeb5e7431228d8f6a5ccbe3a9e0ad1683cd16bec23
parent3d37406626704b89c5f23ab8bc5adb8f59e58401
util: eliminate pointless switch in virFirewallApplyRule

Since commit b19863640 both useful cases of the switch statement in
this function have made the same call (and the other/default case is
just an error that can never happen). Eliminate the switch to help
eliminate use of currentBackend.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virfirewall.c