From: Barrett Schonefeld <bschoney@xxxxxxxxxx> - src/util/virnetdevbandwidth.c Signed-off-by: Barrett Schonefeld <bschoney@xxxxxxxxxx> --- src/util/virnetdevbandwidth.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/util/virnetdevbandwidth.c b/src/util/virnetdevbandwidth.c index 364b39e3c1..e222bcd6a2 100644 --- a/src/util/virnetdevbandwidth.c +++ b/src/util/virnetdevbandwidth.c @@ -711,16 +711,13 @@ virNetDevBandwidthUpdateFilter(const char *ifname, const virMacAddr *ifmac_ptr, unsigned int id) { - int ret = -1; g_autofree char *class_id = NULL; class_id = g_strdup_printf("1:%x", id); if (virNetDevBandwidthManipulateFilter(ifname, ifmac_ptr, id, class_id, true, true) < 0) - goto cleanup; + return -1; return 0; - cleanup: - return ret; } -- 2.29.0