From 92332ade1f7a64d260e26774589a3b48d386fcc9 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 13 Feb 2023 14:38:09 +0100 Subject: [PATCH] virNetDevBandwidthParse: Don't validate element name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Callers make sure to pass the correct element. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- src/conf/netdev_bandwidth_conf.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/conf/netdev_bandwidth_conf.c b/src/conf/netdev_bandwidth_conf.c index 1609b14784..48be9d2f38 100644 --- a/src/conf/netdev_bandwidth_conf.c +++ b/src/conf/netdev_bandwidth_conf.c @@ -112,12 +112,6 @@ virNetDevBandwidthParse(virNetDevBandwidth **bandwidth, def = g_new0(virNetDevBandwidth, 1); - if (!node || !virXMLNodeNameEqual(node, "bandwidth")) { - virReportError(VIR_ERR_INVALID_ARG, "%s", - _("invalid argument supplied")); - return -1; - } - class_id_prop = virXMLPropString(node, "classID"); if (class_id_prop) { if (!class_id) {