From: Peter Krempa Date: Mon, 13 Feb 2023 13:38:09 +0000 (+0100) Subject: virNetDevBandwidthParse: Don't validate element name X-Git-Tag: v9.5.0-rc1~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92332ade1f7a64d260e26774589a3b48d386fcc9;p=thirdparty%2Flibvirt.git virNetDevBandwidthParse: Don't validate element name Callers make sure to pass the correct element. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- 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) {