mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
networkStartNetworkVirtual: s/err5/error
In attempt to getting rid of errN labels let's start with the most upper one and rename it to 'error'. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
da04eab953
commit
9e3356ea1e
@ -2485,14 +2485,14 @@ networkStartNetworkVirtual(virNetworkDriverStatePtr driver,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (virNetDevBandwidthSet(def->bridge, def->bandwidth, true, true) < 0)
|
if (virNetDevBandwidthSet(def->bridge, def->bandwidth, true, true) < 0)
|
||||||
goto err5;
|
goto error;
|
||||||
|
|
||||||
VIR_FREE(macTapIfName);
|
VIR_FREE(macTapIfName);
|
||||||
VIR_FREE(macMapFile);
|
VIR_FREE(macMapFile);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err5:
|
error:
|
||||||
virErrorPreserveLast(&save_err);
|
virErrorPreserveLast(&save_err);
|
||||||
if (def->bandwidth)
|
if (def->bandwidth)
|
||||||
virNetDevBandwidthClear(def->bridge);
|
virNetDevBandwidthClear(def->bridge);
|
||||||
|
Loading…
Reference in New Issue
Block a user