Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
src/network/bridge_driver.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index 5ccc3817d4..7c46a65c72 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -3150,18 +3150,15 @@ networkBridgeNameValidate(virNetworkObjList *nets,
virReportError(VIR_ERR_INTERNAL_ERROR,
_("bridge name '%s' already in use."),
def->bridge);
- goto error;
+ return -1;
}
} else {
/* Allocate a bridge name */
if (networkFindUnusedBridgeName(nets, def) < 0)
- goto error;
+ return -1;
}
return 0;
-
- error:
- return -1;
}
--
2.31.1