提交 54370ad9 编写于 作者: D Daniel Henrique Barboza 提交者: Erik Skultety

nwfilter: remove unneeded labels

Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 05a18bbb
......@@ -1046,7 +1046,7 @@ iptablesHandlePortData(virFirewallPtr fw,
if (printDataType(vars,
portstr, sizeof(portstr),
&portData->dataSrcPortStart) < 0)
goto err_exit;
return -1;
if (ENTRY_WANT_NEG_SIGN(&portData->dataSrcPortStart))
virFirewallRuleAddArg(fw, fwrule, "!");
......@@ -1056,7 +1056,7 @@ iptablesHandlePortData(virFirewallPtr fw,
if (printDataType(vars,
portstralt, sizeof(portstralt),
&portData->dataSrcPortEnd) < 0)
goto err_exit;
return -1;
virFirewallRuleAddArgFormat(fw, fwrule,
"%s:%s", portstr, portstralt);
......@@ -1069,7 +1069,7 @@ iptablesHandlePortData(virFirewallPtr fw,
if (printDataType(vars,
portstr, sizeof(portstr),
&portData->dataDstPortStart) < 0)
goto err_exit;
return -1;
if (ENTRY_WANT_NEG_SIGN(&portData->dataDstPortStart))
virFirewallRuleAddArg(fw, fwrule, "!");
......@@ -1079,7 +1079,7 @@ iptablesHandlePortData(virFirewallPtr fw,
if (printDataType(vars,
portstralt, sizeof(portstralt),
&portData->dataDstPortEnd) < 0)
goto err_exit;
return -1;
virFirewallRuleAddArgFormat(fw, fwrule,
"%s:%s", portstr, portstralt);
......@@ -1089,9 +1089,6 @@ iptablesHandlePortData(virFirewallPtr fw,
}
return 0;
err_exit:
return -1;
}
......
......@@ -725,7 +725,7 @@ virNWFilterLearnIPAddress(virNWFilterTechDriverPtr techdriver,
}
if (VIR_ALLOC(req) < 0)
goto err_no_req;
return -1;
if (!(req->binding = virNWFilterBindingDefCopy(binding)))
goto err_free_req;
......@@ -752,7 +752,6 @@ virNWFilterLearnIPAddress(virNWFilterTechDriverPtr techdriver,
virNWFilterDeregisterLearnReq(ifindex);
err_free_req:
virNWFilterIPAddrLearnReqFree(req);
err_no_req:
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册